diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 13:41:18 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 13:41:18 -0700 |
commit | d5660d2d3ea6e8172272f1eb27e8071a1a42d87b (patch) | |
tree | 814fe98dbf50922698fbbb6dd63664f0d2c84668 /modules/organize | |
parent | 83344b9e7d5bdde05956a0a5c0b6578e19974066 (diff) |
Fixing all detected XSS vectors in PHP->JS code.
Xss: Rename UNKNOWN back to DIRTY, JS_XSS to DIRTY_JS.
(using a different flag value to highlight potential XSS vectors in JS)
Diffstat (limited to 'modules/organize')
-rw-r--r-- | modules/organize/views/organize.html.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/organize/views/organize.html.php b/modules/organize/views/organize.html.php index 1182a887..d2f0aa8c 100644 --- a/modules/organize/views/organize.html.php +++ b/modules/organize/views/organize.html.php @@ -1,16 +1,16 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <!-- ?= html::script("modules/organize/js/organize.js") ? --> <script> - var FATAL_ERROR = "<?= t("Fatal Error") ?>"; - var PAUSE_BUTTON = "<?= t("Pause") ?>"; - var RESUME_BUTTON = "<?= t("Resume") ?>"; - var CANCEL_BUTTON = "<?= t("Cancel") ?>"; - var INVALID_DROP_TARGET = "<div class=\"gError\"><?= t("Drop cancelled as it would result in a recursive move") ?></div>"; -var CONFIRM_DELETE = "<?= t("Do you really want to delete the selected albums and/or photos") ?>" + var FATAL_ERROR = "<?= t("Fatal Error")->for_js() ?>"; + var PAUSE_BUTTON = "<?= t("Pause")->for_js() ?>"; + var RESUME_BUTTON = "<?= t("Resume"->for_js()) ?>"; + var CANCEL_BUTTON = "<?= t("Cancel")->for_js() ?>"; + var INVALID_DROP_TARGET = "<div class=\"gError\"><?= t("Drop cancelled as it would result in a recursive move")->for_js() ?></div>"; +var CONFIRM_DELETE = "<?= t("Do you really want to delete the selected albums and/or photos")->for_js() ?>" var item_id = <?= $item->id ?>; - var csrf = "<?= $csrf ?>"; - var rearrangeUrl = "<?= url::site("__URI__/__ITEM_ID____TASK_ID__?csrf=$csrf") ?>"; + var csrf = <?= json_encode($csrf) ?>; + var rearrangeUrl = "<?= url::site("__URI__/__ITEM_ID____TASK_ID__?csrf=$csrf")->for_js() ?>"; $("#doc3").ready(function() { organize_dialog_init(); }); |