diff options
author | cdolivei.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) |
commit | d7bb9f0aa9b1d34a4b7f6f4d425edb090688c684 (patch) | |
tree | e4c5d256254c4bc4f413927803eec57018d2c535 /site/app/app_controller.php | |
parent | 67564799f41986e07328e5f654f51e0e3f90fd69 (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.php | 1 |
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); } } |