From 42cd924bc4ea9d42dbef53244fe2acebba46af6e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 29 Feb 2024 12:31:33 -0800 Subject: 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. --- src/SemanticScuttle/Service/Bookmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SemanticScuttle/Service/Bookmark.php') diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 39ec4f0..e69c4e8 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -1136,7 +1136,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; -- cgit v1.2.3-54-g00ecf