summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-02-29 12:31:33 -0800
committerGravatar Tom Willemse2024-04-15 16:52:41 -0700
commit42cd924bc4ea9d42dbef53244fe2acebba46af6e (patch)
treeac53302151f7f0dd42254a88f89f61890b32caa0
parentab2657e35190f8c1d8e495cf167ce6c48f91d8cb (diff)
downloadscuttle-fix-for-path-urls.tar.gz
scuttle-fix-for-path-urls.zip
Fix issue with urls ending in ‘/’ getting normalized wrongfix-for-path-urls
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 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;