Remove reference to deprecated makepathsafe() function
This commit is contained in:
parent
25bac47c3e
commit
1998cfb68b
|
@ -13,12 +13,9 @@ if ( isset($_REQUEST['sortorder']) ) {
|
|||
$validext = array('cbr', 'cbz');
|
||||
|
||||
if ( isset($_REQUEST['newpath']) ) {
|
||||
$newpath = makepathsafe($_REQUEST['newpath']);
|
||||
if ( is_dir(COMICSDIR . $newpath) ) {
|
||||
$_SESSION['compath'] = $newpath;
|
||||
} else {
|
||||
$_SESSION['compath'] = "/";
|
||||
}
|
||||
$comicfull = realpath(COMICSDIR . base64_decode(urldecode($_REQUEST['newpath'])));
|
||||
if ( ($comicfull === false) || (substr($comicfull, 0, strlen(COMICSDIR)) != COMICSDIR) ) $_SESSION['compath'] = "/";
|
||||
$_SESSION['compath'] = substr($comicfull, strlen(COMICSDIR));
|
||||
}
|
||||
|
||||
$compath = $_SESSION['compath'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user