summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-23 17:09:28 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-23 17:09:28 +0200
commit6d92ebca454ab2e6533d0b7a08bfe30d20005820 (patch)
tree4cfcb797863dcf63d1f06cdcbfe48e0d712201e8 /lib/helper.php
parent9226cb7a6a029ef1257eee46cd22044a294b0d5f (diff)
downloadnextcloud-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-xlib/helper.php2
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;