Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Index: request.php
  2. ===================================================================
  3. --- request.php (revision 11512)
  4. +++ request.php (working copy)
  5. @@ -264,7 +264,7 @@
  6. * @return string: File name
  7. */
  8. private function parseFilename($path) {
  9. - preg_match("#[\s\w\xc0-\xff\-\_\%2F\+]*\.[a-z0-9]{1,}$#i", $path, $matches);
  10. + preg_match("#[^\/]*\.[a-z0-9]{1,}$#i", $path, $matches);
  11. if (isset($matches[0])) {
  12. return api_helpers_string::ensureUtf8(urldecode($matches[0]));
  13. }
Add Comment
Please, Sign In to add comment