Fix issue with urls ending in ‘/’ getting normalized wrong

Normalizing them this way ruins the url by cutting off a character too many and
making the url invalid.
This commit is contained in:
Tom Willemse 2024-02-29 12:31:33 -08:00
parent ca9225972f
commit 5fb1260ba3

View file

@ -1138,7 +1138,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
// Delete final /
if (substr($address, -1) == '/') {
$address = substr($address, 0, strlen($address)-2);
$address = substr($address, 0, -1);
}
return $address;