flatpressblog/flatpress

Missing check of the character set input

Opened this issue · 1 comments

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

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"