diff options
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r-- | lib/class/song.class.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 095198d6..0835c7c1 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -777,11 +777,9 @@ class Song { $port = Config::get('http_port'); if (preg_match("/:\d+/",$web_path)) { $web_path = str_replace("https://", "http://",$web_path); - $web_path = preg_replace("/:\d+/",":$port",$web_path); } else { $web_path = str_replace("https://", "http://",$web_path); - $web_path = str_replace($_SERVER['HTTP_HOST'],$_SERVER['HTTP_HOST'] . ':' . $port,$web_path); } } |