summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-02-29 12:31:33 -0800
committerGravatar Tom Willemse2024-02-29 12:31:33 -0800
commit5fb1260ba395b687123ff4980a8915ddc148fed2 (patch)
treee83973d06b9494351538bd1f6b498749cd023769
parentca9225972feb4442178d791f7a4948e748a96afb (diff)
downloadscuttle-5fb1260ba395b687123ff4980a8915ddc148fed2.tar.gz
scuttle-5fb1260ba395b687123ff4980a8915ddc148fed2.zip
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.
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index 56003c6..17f91b1 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -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;