Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

editing roles - warning

#185

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.

Reported by semias · March 22nd, 2011 @ 02:56 AM

State: resolved
Milestone: 5.0.4
Assigned to: semias semias

Activity

  1. semias
    semias
    • 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...

    April 8th, 2011 @ 03:29 AM

  2. semias
    semias
    • 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;
    }
    

    April 8th, 2011 @ 04:27 AM

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.