Skip to content
Snippets Groups Projects
Commit 51078315 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '7728-handle-http-and-https-redirects' into 'master'

small fix

See merge request !10
parents 886b80aa 08e8e154
No related branches found
No related tags found
1 merge request!10small fix
......@@ -149,7 +149,7 @@ if (!$oR->isEnabled()) {
$sRelFrom = $sFrom;
break;
case 'regex':
$sRelFrom = $aTo['link'] ?? false;
$sRelFrom = $aTo['link'] ?? ($sFrom == '.*' ? 'something' : false);
break;
}
......
......@@ -164,8 +164,9 @@ class redirectadmin extends redirect
// $sReturn .= '<strong>'.$iJump.') HTTP status: '.$iStatus.' - '.$sUrl.'</strong><pre>'.$sBlock.'</pre>';
$sWebhost=parse_url($sUrl, PHP_URL_HOST);
$sWebhost=preg_replace('/_$/', '', parse_url($sUrl, PHP_URL_HOST));
$sBox.="<div class=\"box $sStatus\">"
// .$sUrl.'<br>'
.$sWebhost.'<br>'
. $this->_getIp($sWebhost)
.'</div>';
......@@ -179,7 +180,7 @@ class redirectadmin extends redirect
}
$iHops = $iJump-1;
$sReturn = '<br>'.($iHops > 0
? 'Found hops: <strong>' . $iHops . '</strong>'
? 'Found hops: <strong>' . $iHops . '</strong> '
. ($iHops > 1 ? '<span class="warning"> ⚠️ Verify your redirect to skip unneeded hops.</span>' : '') . '<br><br>'
. '<div>'.$sBox.'</div><br><br><br>'
: ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment