Forum
Regarding documentation ("How do I create a multilingual site")
The documentation found at the following url: https://solutions.grabaperch.com/architecture/how-do-i-create-a-multilingual-site
Should instruct users to use validation to avoid problems within the Perch Dashboard. (When people attempt to inject javascript or SQL, for example).
$validLang = array(
'en', 'us', 'de', 'fr', 'es', 'ru', 'arabic'
);
$lang = 'en'; //Default language
...
if(!in_array($lang, $validLang)) {
$lang = 'en';
}
Kind Regards, Ryan Ormrod (https://monkeyweb-design.co.uk, Warwick)
Right, it's just a simplified example. You should test for the languages you know to be valid.