Simplify FTP configuration using new format

This commit is contained in:
Kijin Sung 2016-02-04 16:10:52 +09:00
parent 673cd48db0
commit a36bc03970
9 changed files with 155 additions and 201 deletions

View file

@ -284,7 +284,7 @@ class Lang
public function __get($key)
{
// Separate the plugin name from the key.
if (($keys = explode('.', $key, 2)) && count($keys) === 2)
if (preg_match('/^[a-z0-9_.-]+$/i', $key) && ($keys = explode('.', $key, 2)) && count($keys) === 2)
{
list($plugin_name, $key) = $keys;
if (!isset($this->_loaded_plugins[$plugin_name]))