Issue Bug Closed

#39683wrong character class in valueCheck for "alphanum_x"

Stefan Froemken 08/10/12, 11:38 updated 09/26/13, 09:24

Description

Have a look here:
http://www.php.net/manual/de/regexp.reference.character-classes.php

Within character classes \, -, ^ are special characters, so you have to excape them.

But in method: checkValue_input_Eval you have following:

case 'alphanum_x':
    $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value);
break;

it should be:

case 'alphanum_x':
    $value = preg_replace('/[^a-zA-Z0-9_\-]/', '', $value);
break;

Stefan

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.