aboutsummaryrefslogtreecommitdiff
path: root/services/bookmarkservice.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-01-24 08:08:58 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-01-24 08:08:58 +0000
commit194ba8fbee8b4c131cecbb341d3b6bffbcb37627 (patch)
treee78a0f99bb273c724682812ac8d063571b3d9847 /services/bookmarkservice.php
parent37ce70760b2d7fcf315b058a4de4de63e4510c97 (diff)
downloadsemanticscuttle-194ba8fbee8b4c131cecbb341d3b6bffbcb37627.tar.gz
semanticscuttle-194ba8fbee8b4c131cecbb341d3b6bffbcb37627.tar.bz2
interface design: normalize url when added (remove final '/')
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@27 b3834d28-1941-0410-a4f8-b48e95affb8f
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'))