Bug fix
This commit is contained in:
parent
6d70d37a8b
commit
27b3fa3577
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($_GET['icon']) || !preg_match("/^\w+(\.svg)?$/", $_GET['icon'])) exit;
|
if (empty($_GET['icon']) || !preg_match("/^[\w\-]+(\.svg)?$/", $_GET['icon'])) exit;
|
||||||
|
|
||||||
$request = $_GET['icon'];
|
$request = $_GET['icon'];
|
||||||
$icons_path = __DIR__."/icons";
|
$icons_path = __DIR__."/icons";
|
||||||
|
Loading…
Reference in New Issue
Block a user