summaryrefslogtreecommitdiffstats
path: root/lib/l10n.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-01 21:50:53 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-07-02 10:23:32 +0200
commite4960c3bb471d572e6883eb8c5a503e3e7c6ccba (patch)
treeb6a4d5658cc7b5dd15250390b773736c46fc4b87 /lib/l10n.php
parent4e63981da9a02d8a6c2393ad6773edf558222530 (diff)
downloadnextcloud-server-e4960c3bb471d572e6883eb8c5a503e3e7c6ccba.tar.gz
nextcloud-server-e4960c3bb471d572e6883eb8c5a503e3e7c6ccba.zip
fix a small PHP fail
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 4acbc5dcebc..b21829e91fd 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -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;
}