Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blacklist / Whitelist / textarea #53

Open
gs58muse opened this issue Nov 12, 2019 · 0 comments
Open

Blacklist / Whitelist / textarea #53

gs58muse opened this issue Nov 12, 2019 · 0 comments

Comments

@gs58muse
Copy link

gs58muse commented Nov 12, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant