Skip to content
Snippets Groups Projects
Commit 2629c4bd authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

Changed the error re-direct URL to the same as $site_url in case a user tries...

Changed the error re-direct URL to the same as $site_url in case a user tries to access a sub-directory that does no exist.
parent cb5bbdee
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -7,7 +7,7 @@ function error_flood() {
}
function error_httpd() {
global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT;
global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT, $site_url;
switch($REDIRECT_STATUS) {
case 500:
......@@ -35,7 +35,7 @@ function error_httpd() {
print "<H1>Oops, an error occured!</H1>\n";
print "<B>Processed output:</B><BR>\n";
print " * $message<BR>\n";
print " * Return to the <A HREF=\"\">main page</A>.\n";
print " * Return to the <A HREF=\"$site_url\">main page</A>.\n";
print "</PRE>\n";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment