Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: request.php
- ===================================================================
- --- request.php (revision 11512)
- +++ request.php (working copy)
- @@ -264,7 +264,7 @@
- * @return string: File name
- */
- private function parseFilename($path) {
- - preg_match("#[\s\w\xc0-\xff\-\_\%2F\+]*\.[a-z0-9]{1,}$#i", $path, $matches);
- + preg_match("#[^\/]*\.[a-z0-9]{1,}$#i", $path, $matches);
- if (isset($matches[0])) {
- return api_helpers_string::ensureUtf8(urldecode($matches[0]));
- }
Add Comment
Please, Sign In to add comment