mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Don't add slash if it's there already.
This commit is contained in:
parent
756eb3548f
commit
a34db3fbe0
1 changed files with 1 additions and 1 deletions
|
|
@ -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]!='/')?'/':'');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue