Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update admin.php
More fixes relating to #169
  • Loading branch information
MW0MWZ committed Oct 3, 2022
1 parent 0ad7d00 commit 5aa194d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/admin.php
Expand Up @@ -26,7 +26,9 @@
if (preg_match('/[^A-Z]/',$_POST["Letter"])) { unset ($_POST["Letter"]);}
if (preg_match('/[^A-Z0-9 ]/',$_POST["Module"])) { unset ($_POST["Module"]);}
}

if ($_POST["Link"] == "UNLINK") {
if (preg_match('/[^A-Z0-9 ]/',$_POST["Module"])) { unset ($_POST["Module"]);}
}
if (empty($_POST["RefName"]) || empty($_POST["Letter"]) || empty($_POST["Module"])) { echo "Somthing wrong with your input, try again";}


Expand Down

0 comments on commit 5aa194d

Please sign in to comment.