]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix a small PHP fail
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 1 Jul 2012 19:50:53 +0000 (21:50 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 1 Jul 2012 19:51:46 +0000 (21:51 +0200)
lib/l10n.php

index 4acbc5dcebc2cfa6f654a8cf835aa72d98009df8..b21829e91fddd6c8e9f4e0356c90f4d3e6db1139 100644 (file)
@@ -115,7 +115,7 @@ class OC_L10N{
                        // (Just no need to define date/time format etc. twice)
                        if(file_exists($i18ndir.$lang.'.php')){
                                // Include the file, save the data from $CONFIG
-                               include($i18ndir.$lang.'.php');
+                               include(strip_tags($i18ndir).strip_tags($lang).'.php');
                                if(isset($TRANSLATIONS) && is_array($TRANSLATIONS)){
                                        $this->translations = $TRANSLATIONS;
                                }