This commit is contained in:
Shuqi 2023-11-28 15:32:37 +08:00
parent 6d70d37a8b
commit 27b3fa3577
1 changed files with 1 additions and 1 deletions

View File

@ -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";