diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-09 18:03:47 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-11 21:08:48 +0400 |
commit | 74e73bc8021b71cc3b89ea6ca204e1cab42257c3 (patch) | |
tree | d22a83a7fd38759fdeec8979102adc8b49c0dd96 /lib/l10n.php | |
parent | 015ac6a91dc1490a5ddd9adc40d3d8a9af8334eb (diff) |
Remove invalid characters from app id to prevent loading of invalid resources
Diffstat (limited to 'lib/l10n.php')
-rw-r--r-- | lib/l10n.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/l10n.php b/lib/l10n.php index d47637d23de..d382692343a 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -77,6 +77,7 @@ class OC_L10N{ * language. */ public function __construct($app, $lang = null){ + $app = OC_App::cleanAppId($app); // Find the right language if(is_null($lang)){ $lang = self::findLanguage($app); |