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

small fix

parent 9e3d933b
Branches
No related tags found
1 merge request!10small fix
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
......@@ -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>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment