diff options
author | fwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2007-03-25 07:11:12 (GMT) |
---|---|---|
committer | fwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2007-03-25 07:11:12 (GMT) |
commit | 6891507bc97d45e4a6f11f23586398c46b4b823b (patch) | |
tree | c41a6eb71c397b9671645de66a8b7b8ce3eb03ad /site/app/app_controller.php | |
parent | 8b756e3cf71a156c111734a1b858d05322d1917a (diff) |
avoiding html entity sanitization of date fields in publish().
git-svn-id: http://svn.mozilla.org/addons/trunk@2910 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r-- | site/app/app_controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php index 20eb491..0f15508 100644 --- a/site/app/app_controller.php +++ b/site/app/app_controller.php @@ -263,7 +263,8 @@ class AppController extends Controller } elseif (is_string($data)) { // encode the string - $data = $this->Sanitize->html($data); + if (!empty($data) && -1 === strtotime($data)) + $data = $this->Sanitize->html($data); } // otherwise, we don't do anything (with ints or null etc.). } |