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:
authorwclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-03-28 00:17:37 (GMT)
committer wclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-03-28 00:17:37 (GMT)
commite435712cd7a5924ec7bd845b33c697c42c043a40 (patch)
tree4d8d4159f860ff99e494c87863930329e9d249c2 /site/app/app_controller.php
parent962a7f514a564c720eacc163d64ee8cd21eb7670 (diff)
Adding a quick check so locale_html doesn't get encoded (bug 375498). I'm leaving the bug open, because we need a more robust solution than this.
git-svn-id: http://svn.mozilla.org/addons/trunk@2987 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 0f15508..2764cad 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -251,7 +251,13 @@ class AppController extends Controller
if (empty($data)) return; // prevents removal of empty arrays
// recurse through the array to get all values
foreach ($data as $key => $value) {
- $this->_sanitizeArray($data[$key]);
+ // @todo This if() statement is a temporary solution until we come up with
+ // a better way of excluding fields from being sanitized. This
+ // particular array keeps the translations locale strings from
+ // becoming entities
+ if (!in_array($key,array('locale','locale_html'))) {
+ $this->_sanitizeArray($data[$key]);
+ }
}
// change the keys if necessary