diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-14 12:48:42 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-14 13:23:12 +0200 |
commit | a34db3fbe00aa54a4d98bfab0d48ce03db8ee8c3 (patch) | |
tree | 6d1321b5b2ccae2fe067fb533a44ce3cea1f6ca0 /lib/helper.php | |
parent | 756eb3548fcab5f610bccee50d6581e2a3bcd36c (diff) | |
download | nextcloud-server-a34db3fbe00aa54a4d98bfab0d48ce03db8ee8c3.tar.gz nextcloud-server-a34db3fbe00aa54a4d98bfab0d48ce03db8ee8c3.zip |
Don't add slash if it's there already.
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index decc1d61336..fe6795d28ee 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -132,7 +132,7 @@ class OC_Helper { * Returns a absolute url to the given service. */ public static function linkToRemote( $service, $add_slash = true ) { - return self::linkToAbsolute( '', 'remote.php') . '/' . $service . ($add_slash?'/':''); + return self::linkToAbsolute( '', 'remote.php') . '/' . $service . (($add_slash && $service[strlen($service)-1]!='/')?'/':''); } /** |