You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i think it's better to make the "isBlacklisted" Function caseinsensitive. (P01contact_Field.php - Line: 164)
In textareas i want to blacklist e.g. "href=,class=,id= ..." - but in the current version the function works only if the input is exactly like my values in the Backend.
I changed Line 174 + 176 to: Line 174: $content = array_filter(explode(',', strtolower($cl->content))); Line 176: $found = preg_match("$avoid", strtolower($this->value));
this works for me.
I also added the maxlength-attribute to "<textarea id= ..>" in Line 214. $html .= '<textarea id="' . $id . '" rows="10" maxlength="3000" ';
So I prevent too long inputs (possibly from the clipboard)
Greetings
Gerhard
The text was updated successfully, but these errors were encountered:
Hi Nicolas,
some ideas for improvements:
i think it's better to make the "isBlacklisted" Function caseinsensitive. (P01contact_Field.php - Line: 164)
In textareas i want to blacklist e.g. "href=,class=,id= ..." - but in the current version the function works only if the input is exactly like my values in the Backend.
I changed Line 174 + 176 to:
Line 174: $content = array_filter(explode(',', strtolower($cl->content)));
Line 176: $found = preg_match("
$avoid", strtolower($this->value));
this works for me.
I also added the maxlength-attribute to "<textarea id= ..>" in Line 214.
$html .= '<textarea id="' . $id . '" rows="10" maxlength="3000" ';
So I prevent too long inputs (possibly from the clipboard)
Greetings
Gerhard
The text was updated successfully, but these errors were encountered: