Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-09 18:03:47 +0400
committerBart Visscher <bartv@thisnet.nl>2013-02-11 21:08:48 +0400
commit74e73bc8021b71cc3b89ea6ca204e1cab42257c3 (patch)
treed22a83a7fd38759fdeec8979102adc8b49c0dd96 /core
parent015ac6a91dc1490a5ddd9adc40d3d8a9af8334eb (diff)
Remove invalid characters from app id to prevent loading of invalid resources
Diffstat (limited to 'core')
-rw-r--r--core/ajax/translations.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ajax/translations.php b/core/ajax/translations.php
index a6433b1964a..73d918f134d 100644
--- a/core/ajax/translations.php
+++ b/core/ajax/translations.php
@@ -25,6 +25,7 @@
require_once('../../lib/base.php');
$app = $_POST["app"];
+$app = OC_App::cleanAppId($app);
$l = OC_L10N::get( $app );