Allow albums with two dots in them
[noxon-gateway.git] / www / index.php
index 1ec3bf1de81f0341cbeb5110c6515edb133e376a..abbe69890cffa619396c73101ba2fbdaae63b93b 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;
     }