summaryrefslogtreecommitdiff
path: root/services/bookmarkservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/bookmarkservice.php')
-rw-r--r--services/bookmarkservice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php
index 3181123..93dd06a 100644
--- a/services/bookmarkservice.php
+++ b/services/bookmarkservice.php
@@ -115,6 +115,9 @@ class BookmarkService {
if (strpos($address, ':') === false) {
$address = 'http://'. $address;
}
+ if (substr($address, -1) == '/') {
+ $address = substr($address, 0, count($address)-2);
+ }
// Get the client's IP address and the date; note that the date is in GMT.
if (getenv('HTTP_CLIENT_IP'))