]> git.p6c8.net - jirafeau_project.git/commitdiff
Fix link name length check
authorJerome Jutteau <mojo@couak.net>
Mon, 29 Jul 2013 20:03:43 +0000 (20:03 +0000)
committerJerome Jutteau <mojo@couak.net>
Mon, 29 Jul 2013 20:03:43 +0000 (20:03 +0000)
script.php

index 2409f1bde0bd68817fdd685183f85315e103890d..b9685407311d8dcaab4e8adbaebfd57b98cab6cd 100755 (executable)
@@ -319,7 +319,7 @@ elseif (isset ($_GET['h']))
     if (isset ($_GET['d']))\r
         $d = $_GET['d'];\r
     \r
     if (isset ($_GET['d']))\r
         $d = $_GET['d'];\r
     \r
-    if (!preg_match ('/[0-9a-zA-Z_-]{22}$/', $link_name))\r
+    if (!preg_match ('/[0-9a-zA-Z_-]+$/', $link_name))\r
     {\r
         echo "Error";\r
         exit;\r
     {\r
         echo "Error";\r
         exit;\r

patrick-canterino.de