summaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 'core')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 4abaced1ae0..b4482185509 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -53,7 +53,7 @@ OC={
var isCore=OC.coreApps.indexOf(app)!=-1;
var link=OC.webroot;
if(file.substring(file.length-3) == 'php' && !isCore){
- link+='/?app=' + app + '&getfile=' + type + '/' + file;
+ link+='/?app=' + app + '&getfile=' + encodeURI(type + '/' + file);
}else{
link+='/';
app+='/';