Bug #1903 ยป 1903.patch
administrator/components/com_comprofiler/plugin.class.php | ||
---|---|---|
// treats case of ',,' or ',,,' to also forbid ',' if in string.
|
||
$forbiddenContent[] = ',';
|
||
}
|
||
$replaced = str_replace( $forbiddenContent, '', $value );
|
||
for ( $i = 0, $n = count( $forbiddenContent ); $i < $n; $i++ ) {
|
||
$forbiddenContent[$i] = preg_quote( $forbiddenContent[$i], '/' );
|
||
}
|
||
$replaced = preg_replace( '/' . implode( '|', $forbiddenContent ) . '/i', '', $value );
|
||
if ( $replaced != $value ) {
|
||
$this->_setValidationError( $field, $user, $reason, _UE_INPUT_VALUE_NOT_ALLOWED );
|
||
return false;
|