Skip to content
Commit baa95034 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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.
parent 90d8e4bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment