fix(legacy): station url always has a trailing slash (#1838)

This commit is contained in:
Jonas L 2022-05-05 19:24:51 +02:00 committed by GitHub
parent a4caf4782b
commit be5d732006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 12 deletions

View file

@ -42,16 +42,6 @@ class Application_Common_HTTPHelper
]
);
if (empty($baseDir)) {
$baseDir = '/';
}
if ($baseDir[0] != '/') {
$baseDir = '/' . $baseDir;
}
if (substr($baseDir, -1) != '/') {
$baseDir = $baseDir . '/';
}
return rtrim($url, '/') . '/';
}