mirror of
https://github.com/sruupl/batflat.git
synced 2026-05-07 21:07:07 +02:00
modules/navigation: Fixed code injection vulnerability
This commit is contained in:
@@ -29,6 +29,7 @@ class Site extends SiteModule
|
||||
$homepage = $this->settings('settings', 'homepage');
|
||||
|
||||
$lang_prefix = $this->core->lang['name'];
|
||||
|
||||
if ($lang_prefix != $this->settings('settings', 'lang_site')) {
|
||||
$lang_prefix = explode('_', $lang_prefix)[0];
|
||||
} else {
|
||||
@@ -98,6 +99,7 @@ class Site extends SiteModule
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user