Moriyoshi Koizumi wrote: > Right, but the browsers send filenames in its particular form, whose > path delimiter could be '\\'. Isn't this causing another problem on > a *NIX system where '\\' isn't regarded as a delimiter by php_basename()?
No, browsers send filenames however they like, we cannot assume anything since ultimately someone could doctor a request. On *NIX, \ would be ignored and continue being part of the filename. In effect keeping the original supplied file name in play. The magic quotes code only results in a file being trimmed @ a ' or " character, the previous code already trimmed it at either \ or /, which ever appeared last. Ilia -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php