]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
interface design: normalize url when added (remove final '/')
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 24 Jan 2008 08:08:58 +0000 (08:08 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 24 Jan 2008 08:08:58 +0000 (08:08 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@27 b3834d28-1941-0410-a4f8-b48e95affb8f

services/bookmarkservice.php

index 31811237ed5ba484942336cbd79071b66de11e1a..93dd06a621f5d14f58f1df5eee9646ecda19825e 100644 (file)
@@ -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'))