]> source.dussan.org Git - nextcloud-server.git/commit
Encode parameters in `OC.generateUrl` by itself
authorLukas Reschke <lukas@owncloud.com>
Mon, 16 Feb 2015 19:07:45 +0000 (20:07 +0100)
committerLukas Reschke <lukas@owncloud.com>
Tue, 17 Feb 2015 13:41:06 +0000 (14:41 +0100)
commit27c1409be537dcc066096281820546323d8667db
treebb93abcf4184996073b776851550a94c7968f57c
parent76c511de92f1b4dc6dcc31ac5ae15ffade29bb18
Encode parameters in `OC.generateUrl` by itself

This function is often used in a wrong and potential dangerous way... Thus we should escape the URL per default and offer developers to disable the automatic escaping via an option parameter if they really want that behaviour.

Might break some things, however, those things are then easy to fix and we really have a ton of bugs caused by this...

Fixes https://github.com/owncloud/core/issues/14228
core/js/js.js
core/js/tests/specs/coreSpec.js