Fix link name length check

This commit is contained in:
Jerome Jutteau 2013-07-29 20:03:43 +00:00
parent c4b50888f4
commit 8e9d60538d

View File

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