diff options
author | Tom Willemse | 2024-02-29 12:31:33 -0800 |
---|---|---|
committer | Tom Willemse | 2024-04-15 16:52:41 -0700 |
commit | 42cd924bc4ea9d42dbef53244fe2acebba46af6e (patch) | |
tree | ac53302151f7f0dd42254a88f89f61890b32caa0 /src/SemanticScuttle/Service/Bookmark.php | |
parent | ab2657e35190f8c1d8e495cf167ce6c48f91d8cb (diff) | |
download | scuttle-42cd924bc4ea9d42dbef53244fe2acebba46af6e.tar.gz scuttle-42cd924bc4ea9d42dbef53244fe2acebba46af6e.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.
Diffstat (limited to 'src/SemanticScuttle/Service/Bookmark.php')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark.php | 2 |
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; |