Nextcloud Server
Go to file
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
.github
.idea
.tx
3rdparty@d4e8f89af1 Silence phan 2018-04-06 13:46:32 +02:00
apps log more information about insufficient storage in dav plugin 2018-04-17 15:29:37 +02:00
build Merge pull request #9203 from nextcloud/declare-func-as-safe 2018-04-17 13:45:27 +02:00
config Provide an option to disable HTML emails 2018-04-16 19:00:05 +02:00
contribute
core Fix ids of permission checkboxes for shares 2018-04-18 15:25:23 +02:00
lib Merge pull request #9217 from nextcloud/show-link-trusted-domains 2018-04-17 21:21:37 +02:00
ocs
ocs-provider
resources Update CRL to include old quicknotes cert 2018-04-17 11:40:56 +02:00
settings Merge pull request #9218 from nextcloud/personal-settings 2018-04-18 10:14:25 +02:00
tests Show a link to the docs instead of a button on the untrusted domain page 2018-04-17 17:47:11 +02:00
themes Use customclient_* values by default and do not use them in custom themes anymore 2018-03-26 19:26:36 +02:00
.bowerrc
.codecov.yml
.drone.yml Merge pull request #9145 from nextcloud/use-authorized-github-checks 2018-04-11 16:27:13 +02:00
.gitignore Fix some typos 2018-03-21 14:30:56 +01:00
.gitmodules
.htaccess
.jshintrc
.lgtm
.mailmap
.scrutinizer.yml
.tag
.user.ini
AUTHORS
autotest-checkers.sh
autotest-external.sh
autotest-hhvm.sh
autotest-js.sh
autotest.sh
bower.json
buildjsdocs.sh
CHANGELOG.md
CODE_OF_CONDUCT.md
composer.json
console.php
CONTRIBUTING.md Update link to Nextcloud 13 Developer Manual 2018-04-04 23:40:26 +09:00
COPYING
COPYING-README
cron.php
index.html
index.php
issue_template.md
occ
public.php
README.md
remote.php
robots.txt
status.php
version.php Add an uid_lower column to the oc_users table 2018-04-06 13:42:50 +02:00

Nextcloud Server

Scrutinizer Code Quality codecov CII Best Practices irc irc

A safe home for all your data.

Why is this so awesome?

  • 📁 Access your Data You can store your files, contacts, calendars and more on a server of your choosing.
  • 📦 Sync your Data You keep your files, contacts, calendars and more synchronized amongst your devices.
  • 🔄 Share your Data …by giving others access to the stuff you want them to see or to collaborate with.
  • 🚀 Expandable with dozens of Apps ...like Calendar, Contacts, Mail and all those you can discover in our App Store
  • 🔒 Security with our encryption mechanisms, HackerOne bounty program and two-factor authentication.

You want to learn more about how you can use Nextcloud to access, share and protect your files, calendars, contacts, communication & more at home and at your Enterprise? Learn about all our Features.

Get your Nextcloud

Enterprise? Public Sector or Education user? You may want to have a look into the Enterprise Support Subscription provided by the Nextcloud GmbH

Get in touch

…learn more about how to get support for Nextcloud here!

Contribution Guidelines

All contributions to this repository from June, 16 2016 on are considered to be licensed under the AGPLv3 or any later version.

Nextcloud doesn't require a CLA (Contributor License Agreement). The copyright belongs to all the individual contributors. Therefore we recommend that every contributor adds following line to the header of a file, if they changed it substantially:

@copyright Copyright (c) <year>, <your name> (<your email address>)

Please read the Code of Conduct. This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.

Please review the guidelines for contributing to this repository.

More information how to contribute: https://nextcloud.com/contribute/

Running master checkouts

Third-party components are handled as git submodules which have to be initialized first. So aside from the regular git checkout invoking git submodule update --init or a similar command is needed, for details see Git documentation.

Several apps that are included by default in regular releases such as firstrunwizard or gallery are missing in master and have to be installed manually.

That aside Git checkouts can be handled the same as release archives.

Note they should never be used on production systems.