Because URLs always require forward slashes, it is risky to use code that may produce backslashes in some circumstances. Unfortunately, cms_join_path probably encourages developers to produce strings used both for file paths and URLs which can then cause errors if the code is ported to a Windows server. I found some examples by inspection of the TrueTypeText module, which may produce invalid URLs when running on a Windows server (more details here http://dev.cmsmadesimple.org/feature_request/view/3749)
A simple solution would be to change the function to this:
Code: Select all
function cms_join_path()
{
$args = func_get_args();
return implode('/',$args);
}