Thread tagged as: Problem, Error, Docs

Regarding documentation ("How do I create a multilingual site")

The documentation found at the following url:

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';

Preview of issue

Kind Regards, Ryan Ormrod (, Warwick)

Christian Thomas

Christian Thomas 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Right, it's just a simplified example. You should test for the languages you know to be valid.