Allow albums with two dots in them
authorChristian Weiske <cweiske@cweiske.de>
Tue, 19 Dec 2017 20:18:21 +0000 (21:18 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 19 Dec 2017 20:18:21 +0000 (21:18 +0100)
Examples:
- "Genau, genau, genau...!"
- "Oops!..I Did It Again"

www/index.php

index 1ec3bf1..abbe698 100644 (file)
@@ -30,7 +30,7 @@ handleRequest(ltrim($path, '/'));
 function handleRequest($path)
 {
     global $varDir;
-    if (strpos($path, '..') !== false) {
+    if (strpos($path, '/../') !== false) {
         sendMessage('No');
         return;
     }