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
This commit is contained in:
parent
37ce70760b
commit
194ba8fbee
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user