Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorcdolivei.bugzilla@gmail.com <cdolivei.bugzilla@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-12-04 04:00:01 (GMT)
committer cdolivei.bugzilla@gmail.com <cdolivei.bugzilla@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-12-04 04:00:01 (GMT)
commitd7bb9f0aa9b1d34a4b7f6f4d425edb090688c684 (patch)
treee4c5d256254c4bc4f413927803eec57018d2c535 /site/app/app_controller.php
parent67564799f41986e07328e5f654f51e0e3f90fd69 (diff)
Browse source can fail to load (bug 450045, r=fwenzel)
git-svn-id: http://svn.mozilla.org/addons/trunk@20429 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index b3652a7..d0e4c40 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -373,6 +373,7 @@ class AppController extends Controller
// encode the string
if (!empty($data)) {
$data = iconv('UTF-8', 'UTF-8//IGNORE', $data);
+ $data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
$data = preg_replace($sanitize_patterns['patterns'], $sanitize_patterns['replacements'], $data);
}
}