#185 ✓resolved
semias

editing roles - warning

Reported by semias | March 22nd, 2011 @ 02:56 AM | in 5.0.4 (closed)

Editing roles results in the following warnings.

Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/semias/public_html/github.sitellite.nl/saf/lib/MailForm/Rule.php on line 275
Editing: Role

Oops! The following information must be corrected in order to continue:

    Role same should only contains alphanumeric characters or underscores.

Comments and changes to this ticket

  • semias

    semias April 8th, 2011 @ 03:29 AM

    • Milestone order changed from “29” to “0”

    This is not only an issue in the roles, but seems to be an issue across all forms where regexes are used. It looks like the regex, see below, is not a correct regex.

    ^[-a-zA-Z0-9_]+$
    

    However when I test it on regexpal.com, it validates.

    To be continued...

  • semias

    semias April 8th, 2011 @ 04:27 AM

    • State changed from “open” to “resolved”

    Fix for issue #185: This MIGHT introduce a new bug:

    saf/lib/MailForm/Rule.php

    $new_regex = "/" . $this->value . "/";
    
    if (! preg_match ($new_regex, $value)) {
        return false;
    }
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Referenced by

Pages