Skip to content

Cannot create groups with special characters #82

Closed

Description

@MTRichards

When creating users/groups in owncloud 4.5, can't create groups with any special characters (), for example, doesn't work. It allows you to create them in javascript, but then when you reload the page, they disappear - even if you assigned them to a user.

Better experience would be to allow special characters in group names. Second best would be to disallow special characters in the creation of groups.

Activity

  1. LukasReschke commented on Oct 24, 2012

    @LukasReschke
    Contributor

    The reason for this is the limitation in lib/group.php:

    public static function createGroup( $gid ) {
            // Check the name for bad characters
            // Allowed are: "a-z", "A-Z", "0-9" and "_.@-"
            if( preg_match( '/[^a-zA-Z0-9 _\.@\-]/', $gid )) {
                return false;
            }

    This was introduced with b37fb91 by @jakobsack - it would be appreciated if someone else could check if this is needed here. If yes, we should clearly include a check in the JS.

  2. added a commit that references this issue on Oct 25, 2012
    8f715e1
  3. LukasReschke commented on Oct 25, 2012

    @LukasReschke
    Contributor

    As I don't think it would cause any problems to allow any characters here, I removed the check.

  4. locked as resolved and limited conversation to collaborators on Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions