#14366cleanName in t3lib_loadmodules.php adds space at end
Description
the function ‘cleanName’ in t3lib_loadmodules.php adds a space at end of the variable it is supposed to clean to only ASCII.
This leads to the BE not being able to load mandatory modules (as “web” becomes “web “, etc).
This is under PHP 4.3.3 on a SUSE 9.0 platform, running Apache2 and TYPO3 3.7.0
My solution was to change the body of the function from
return ereg_replace(‘[^A-Za-z0-9]*’,’‘,$str);
to
return trim (ereg_replace(‘[^A-Za-z0-9]*’,’‘,$str));
as this will not change the functionality of the function, but add some overhead (and of course fix my problem).
It is probably a PHP bug, even though the ereg_replace with its second argument seems strange to an old programmer….
I just wanted this to be reported, as I searched for this problem and couldn’t find it.
Just close the bug.
(issue imported from #M432)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.