Fix built full path to comic with missing path separator
This commit is contained in:
parent
dcb521cb49
commit
7418063888
|
|
@ -21,7 +21,9 @@ if ( !$validated ) {
|
|||
|
||||
$newpath = urldecode($_REQUEST['path']);
|
||||
|
||||
$comicfull = realpath(COMICSDIR . $newpath);
|
||||
$data["newreq"] = $newpath;
|
||||
$comicfull = realpath(COMICSDIR . "/" . $newpath);
|
||||
$data["comicfull"] = $comicfull;
|
||||
if ( ($newpath == "/") || ($comicfull === false) || (substr($comicfull, 0, strlen(COMICSDIR)) != COMICSDIR) ) {
|
||||
$_SESSION['compath'] = "/";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user