Actions
Bug #16798
closedThe function t3lib_div::isAbsPath() doesn't work correctly on Windows.
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-12-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Running Typo3 on Windows, the function just checks if there is a ':/' from position 1 to 2 in the path. On Unix, it checks for a starting '/', and that should be done on Windows, too. So, just replace the line
return TYPO3_OS=='WIN' ? substr($path,1,2)==':/' : substr($path,0,1)=='/';
with this one
return TYPO3_OS=='WIN' ? (substr($path,1,2)==':/' || substr($path,0,1)=='/') : substr($path,0,1)=='/';
in the function isAbsPath() (about line 3358)
This will check for both ':/' and '/' if running on Windows.
(issue imported from #M4676)
Actions