diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 7518eeda8b26c1d87941a5fd8eb003691e4555fc..aa79f3c55f3dea471d6b6806f345e8604e8cc8b4 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -149,7 +149,7 @@ if (!$oR->isEnabled()) { $sRelFrom = $sFrom; break; case 'regex': - $sRelFrom = $aTo['link'] ?? false; + $sRelFrom = $aTo['link'] ?? ($sFrom == '.*' ? 'something' : false); break; } diff --git a/public_html/classes/redirect.admin.class.php b/public_html/classes/redirect.admin.class.php index a2779a2027376a9e86db8d114851df6c863cfedf..93517c99c95f767b89e57b43ac3d8cf4b693dfb7 100644 --- a/public_html/classes/redirect.admin.class.php +++ b/public_html/classes/redirect.admin.class.php @@ -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>' : ''