diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-23 17:09:28 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-23 17:09:28 +0200 |
commit | 6d92ebca454ab2e6533d0b7a08bfe30d20005820 (patch) | |
tree | 4cfcb797863dcf63d1f06cdcbfe48e0d712201e8 /lib/helper.php | |
parent | 9226cb7a6a029ef1257eee46cd22044a294b0d5f (diff) | |
download | nextcloud-server-6d92ebca454ab2e6533d0b7a08bfe30d20005820.tar.gz nextcloud-server-6d92ebca454ab2e6533d0b7a08bfe30d20005820.zip |
use native functions of php to parse the string into the Var
Diffstat (limited to 'lib/helper.php')
-rwxr-xr-x | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 2067190bca7..072a544a40a 100755 --- a/lib/helper.php +++ b/lib/helper.php @@ -45,7 +45,7 @@ class OC_Helper { $app = substr($app, 0, strlen($app) - 1); } $urlLinkTo = OC::$APPSWEBROOT . '/?app=' . $app; - $urlLinkTo .= ($file!='index.php')?'&getfile=' . $file:''; + $urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):''; } else{ $urlLinkTo = OC::$WEBROOT . '/' . $app . $file; |