Bugfixing. Adding sanity checks

This commit is contained in:
color.diff=auto
2021-03-27 02:53:26 -06:00
parent b85fbf02b3
commit 9bc941faea
8 changed files with 187 additions and 68 deletions

View File

@@ -49,6 +49,7 @@ if (!empty($_POST)) {
echo '<center><h1 style="font-family:Lato; color:#880000;"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
ERROR: INVALID PATH</h1></center>';
} else {
// set this mod to active mod in session
$_SESSION['path'] = $path;
// Don't yell at me, security is the least of my considerations atm
// check modname in db
@@ -78,6 +79,7 @@ ERROR: INVALID PATH</h1></center>';
echo '<center><h1 style="font-family:Lato; color:#880000;"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
ERROR: INVALID PATH</h1></center>';
} else {
// set this mod to active mod in session
$_SESSION['path'] = $path;
// Don't yell at me, security is the least of my considerations atm
// check modname in db