diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-05-11 15:56:37 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-05-11 17:01:57 +0200 |
commit | baa9503442b5161f1a93d6cd8e6b3629a576fe12 (patch) | |
tree | 31f52a7cd805ed4cdecaf1d74ebca09511c22652 /tests | |
parent | 90d8e4bc0081b28f50a427488f2b542de9b0d8d9 (diff) | |
download | nextcloud-server-baa9503442b5161f1a93d6cd8e6b3629a576fe12.tar.gz nextcloud-server-baa9503442b5161f1a93d6cd8e6b3629a576fe12.zip |
Use OC.webroot instead of calculating the URL
Calculating the URL is error-prone as it doesn't work when for example `public.php` is requested and might even be harmful as it could leak sensitive information.
Since `oc.js` is even available when maintenance mode is available it is better to use the global `OC.webroot` that is not controlled by any user.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions