Fix typo in validPath regexp
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 15 May 2006 19:58:26 +0000 (19:58 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 15 May 2006 19:58:26 +0000 (19:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1468 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_div.php

index 4becfa5..0a8c385 100755 (executable)
@@ -3276,7 +3276,7 @@ class t3lib_div {
         * @todo        Possible improvement: Should it rawurldecode the string first to check if any of these characters is encoded ?
         */
        function validPathStr($theFile) {
-               if (!strstr($theFile,'//') && !strstr($theFile,'\\') && !preg_match('|(?:^\.\.|/\.\./|',$theFile))      return true;
+               if (!strstr($theFile,'//') && !strstr($theFile,'\\') && !preg_match('#(?:^\.\.|/\.\./)#',$theFile))     return true;
        }
 
        /**