You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet another place where $contextpath is not supported in logic/addjob.php, Location-header doesn't prefix $contextpath
I suggest creating a function that returns the path, and not hardcode it anywhere.
That way, you can't forget $contextpath so that I'm redirected to a 404-error, also, it'll make it future proof.
Another one:
Missing $contextpath in logic/run.php on line 7: header("Location: /run/$user/");
EDIT:
More in logic/wipejob.php:
Please add {$GLOBALS['contextpath']} (or create a function like suggested) for line 34 and line 37 header("Location: /user/" . $_SESSION['username'] . "/");
header("Location: /job/$job_id/");
The text was updated successfully, but these errors were encountered:
Yet another place where $contextpath is not supported in logic/addjob.php, Location-header doesn't prefix $contextpath
I suggest creating a function that returns the path, and not hardcode it anywhere.
That way, you can't forget $contextpath so that I'm redirected to a 404-error, also, it'll make it future proof.
Another one:
Missing $contextpath in logic/run.php on line 7:
header("Location: /run/$user/");
EDIT:
More in logic/wipejob.php:
Please add {$GLOBALS['contextpath']} (or create a function like suggested) for line 34 and line 37
header("Location: /user/" . $_SESSION['username'] . "/");
header("Location: /job/$job_id/");
The text was updated successfully, but these errors were encountered: