mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-18 01:22:08 +00:00
Bugfixing. Adding sanity checks
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user