nextcloud/core
Daniel Calviño Sánchez 1466586033 Fix ids of permission checkboxes for shares
The ids of permission checkboxes for shares were generated using the
"shareWith" field of the share. The "shareWith" field can contain spaces
(as spaces are allowed, for example, in user or circle names), so this
could cause the id attribute of the HTML element to contain spaces too,
which is forbidden by the HTML specification.

It is not just a "formal" issue, though; when the list was rendered, if
the id contained a space the selector to get the checkbox element was
wrong (as it ended being something like
"#canEdit-view1-name with spaces") and thus the initial state of the
checkbox was not properly set.

Besides that, "shareWith" can contain too single quotes, which would
even cause the jQuery selector to abort the search and leave the UI in
an invalid state.

Instead of adding more cases to the regular expression to escape special
characters and apply it too when the ids are created now the ids of
permission checkboxes for shares are based on the "shareId" field
instead of on "shareWith", as "shareId" is expected to always contain
compatible characters.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-18 15:25:23 +02:00
..
ajax
Command Set the default log rotate size to 100 MB 2018-04-11 00:27:51 +02:00
Controller Use proper types 2018-04-11 00:21:25 +02:00
css Merge pull request #9002 from nextcloud/whitespace 2018-04-10 23:05:01 +02:00
doc
fonts Add TTF of OpenSand-{Ligh,Semibold} 2018-02-19 12:34:49 +01:00
img Add video switch icon 2018-04-07 20:53:36 +02:00
js Fix ids of permission checkboxes for shares 2018-04-18 15:25:23 +02:00
l10n [tx-robot] updated from transifex 2018-04-18 00:13:30 +00:00
Middleware
Migrations Also make it the uid_lower migration work on oracle 2018-04-10 10:47:31 +02:00
search Move search to proper Controller 2018-03-09 14:36:48 +01:00
skeleton
templates Show a link to the docs instead of a button on the untrusted domain page 2018-04-17 17:47:11 +02:00
vendor
Application.php
register_command.php
routes.php Improve login flow 2018-04-08 13:42:36 +02:00
shipped.json
strings.php