Commit ae296677 authored by voleger's avatar voleger

Issue #1327556 by karenann, joelpittet, majingas, mikeytown2, krishna...

Issue #1327556 by karenann, joelpittet, majingas, mikeytown2, krishna savithraj, voleger: Notice: Undefined index: string in lightbox2_filter_xss()
parent c5a3cd83
......@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment