scratch
/file.php |
---|
@@ -75,7 +75,7 @@ |
) |
); |
#### Check for path traversals |
#### Check for path traversals. |
$pathPart = pathinfo($userPath.'.'.$fileExtension); |
if (strcasecmp( |
realpath($pathPart['dirname']), realpath($config['STORE_FOLDER'])) != 0) { |
/file.php |
---|
@@ -75,7 +75,7 @@ |
) |
); |
#### Check for path traversals |
#### Check for path traversals. |
$pathPart = pathinfo($userPath.'.'.$fileExtension); |
if (strcasecmp( |
realpath($pathPart['dirname']), realpath($config['STORE_FOLDER'])) != 0) { |