aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-14 12:48:42 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-14 13:23:12 +0200
commita34db3fbe00aa54a4d98bfab0d48ce03db8ee8c3 (patch)
tree6d1321b5b2ccae2fe067fb533a44ce3cea1f6ca0 /lib/helper.php
parent756eb3548fcab5f610bccee50d6581e2a3bcd36c (diff)
downloadnextcloud-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.php2
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]!='/')?'/':'');
}
/**