scratch – Diff between revs 16 and 17

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 16 Rev 17
Line 53... Line 53...
53 ) 53 )
54 ); 54 );
Line 55... Line 55...
55   55  
56 #### Check for path traversals 56 #### Check for path traversals
-   57 $pathPart = pathinfo($userPath);
57 $pathPart = pathinfo($userPath); 58 if (strcasecmp(
58 if (strcasecmp(realpath($pathPart['dirname']), realpath($STORE_FOLDER)) != 0) 59 realpath($pathPart['dirname']), realpath($STORE_FOLDER)) != 0)
Line 59... Line 60...
59 return; 60 return;
60   61