1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 03:10:19 +02:00

v2.1 delete port from uri

This commit is contained in:
trendschau
2024-01-03 15:43:19 +01:00
parent b7fb6bcdd9
commit 766f799f44

View File

@@ -9,6 +9,7 @@ class Helpers{
public static function urlInfo($uri)
{
$uri = $uri->withUserInfo('');
$uri = $uri->withPort(null);
$basepath = preg_replace('/(.*)\/.*/', '$1', $_SERVER['SCRIPT_NAME']);
$currentpath = $uri->getPath();