summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleh Vehera2018-10-19 11:23:17 (GMT)
committerOleh Vehera2018-10-19 11:23:17 (GMT)
commitae296677b86d2cd8aedae8fb0f34e6b4425ec45d (patch)
tree847d31280c072f32774af5c7b198fac4f7a573d8
parentc5a3cd8342658dce9c376b9e958100811e2acd71 (diff)
Issue #1327556 by karenann, joelpittet, majingas, mikeytown2, krishna savithraj, voleger: Notice: Undefined index: string in lightbox2_filter_xss()
-rw-r--r--lightbox2.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 3c27633..3286984 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -1656,6 +1656,10 @@ function lightbox2_views_api() {
}
function lightbox2_filter_xss() {
+ if (empty($_POST['string'])) {
+ drupal_json_output();
+ return;
+ }
$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') {