Remove trailing slashes from vocabulary links delivered as URLs
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -330,7 +330,7 @@ private static function validateNumericId(string $id, array $prefixes):string|fa
|
||||
foreach ($prefixes as $prefix) {
|
||||
$toRemove[$prefix] = "";
|
||||
}
|
||||
$id = strtr($id, $toRemove);
|
||||
$id = trim(strtr($id, $toRemove), '/');
|
||||
}
|
||||
|
||||
if (!self::_is_numeric($id)) {
|
||||
|
||||
Reference in new issue
Block a user