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

Missing check of the character set input #340

Open
Fraenkiman opened this issue Mar 16, 2024 · 1 comment
Open

Missing check of the character set input #340

Fraenkiman opened this issue Mar 16, 2024 · 1 comment
Labels
Milestone

Comments

@Fraenkiman
Copy link
Collaborator

Fraenkiman commented Mar 16, 2024

Hello everyone,

There is no validation whether the character set input in the admin area is valid or invalid. Currently I could enter a Bochum car license plate as character set and FlatPress does not defend itself.

With best regards
Frank

@Fraenkiman Fraenkiman added this to the FlatPress 1.3.1 milestone Mar 16, 2024
@Fraenkiman
Copy link
Collaborator Author

Two compatible character sets are specified in the file fp-interface/lang/en-us/lang.conf.php. It may be possible to specify a third and fourth character set here and use it for validation.

$langconf ['charsets'] [0] = 'utf-8';

It would be even more elegant to turn the free input field into a dropdown field that uses the character sets from lang.conf.php.

<dd> <p><input type="text" name="charset" id="charset"

@azett azett modified the milestones: FlatPress 1.3.1, FlatPress 1.4 Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants