summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2011-05-24 11:20:34 (GMT)
committerStella Power2011-05-24 11:20:34 (GMT)
commit9f17c71002a16a9ba02b0f3ca208e4e653daa2e1 (patch)
tree3e3fe736ccf4e822589868292288fdaaa8f82cb3
parenta75feb3d9b7967134014b2dbe5a086cb1fe68c06 (diff)
removed allowed_tags POST variable from filterXSS6.x-1.x
-rw-r--r--js/lightbox.js5
-rw-r--r--lightbox2.module8
2 files changed, 3 insertions, 10 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 69a4974..701b3e9 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -1155,13 +1155,12 @@ var Lightbox = {
return (jQuery.inArray(key, keys) != -1 || jQuery.inArray(String(code), keys) != -1);
},
- filterXSS: function(str, allowed_tags) {
+ filterXSS: function(str) {
var output = "";
$.ajax({
url: Drupal.settings.basePath + 'system/lightbox2/filter-xss',
data: {
- 'string' : str,
- 'allowed_tags' : allowed_tags
+ 'string' : str
},
type: "POST",
async: false,
diff --git a/lightbox2.module b/lightbox2.module
index 206020d..1be0864 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -1352,13 +1352,7 @@ function lightbox2_views_api() {
function lightbox2_filter_xss() {
$allowed_tags = trim(variable_get('lightbox2_filter_xss_allowed_tags', 'p, br, a, em, strong, cite, code, ul, ol, li, dl, dt, dd'));
$allowed_tags = (empty($allowed_tags) ? array() : preg_split('/[,\s]+/', $allowed_tags));
- if (!empty($_POST['allowed_tags']) && $_POST['allowed_tags'] != 'undefined') {
- $allowed_tags = explode(',', $_POST['allowed_tags']);
- $output = filter_xss($_POST['string'], $allowed_tags);
- }
- else {
- $output = filter_xss($_POST['string'], $allowed_tags);
- }
+ $output = filter_xss($_POST['string'], $allowed_tags);
drupal_json($output);
}