Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
line 1355 of sites/all/modules/lightbox2/lightbox2.module. Notice is on this line:
$output = filter_xss($_POST['string'], $allowed_tags);
Comment | File | Size | Author |
---|---|---|---|
#12 | 1327556-11.patch | 613 bytes | joelpittet |
#9 | lightbox2_undefined-index-string-lightbox2-filter-xss_1327556-9.patch | 1.32 KB | majingas |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedComment #2
Dubs CreditAttribution: Dubs commentedThis is still an issue in version 7 and the patch does resolve. Can this be committed?
Comment #3
karenann CreditAttribution: karenann commentedI am still seeing this error though now it's
Notice: Undefined index: string in lightbox2_filter_xss() (line 1557 of /sites/all/modules/lightbox2/lightbox2.module).
Working on a patch to upload shortly.
Comment #4
karenann CreditAttribution: karenann commentedComment #5
karenann CreditAttribution: karenann commentedSame thing, just made a mistake in posting. Goal is to get the patch queued for testing.
Comment #6
Matroschker CreditAttribution: Matroschker commentedHave the same issue:
Notice: Undefined index: string in lightbox2_filter_xss() (line 1657 of C:\...\sites\all\modules\lightbox2\lightbox2.module).
Using: Lightbox 7.x-1.0-beta1+9-dev
Comment #7
krishna savithraj CreditAttribution: krishna savithraj commentedPlease test the attached patch for this issue.
Comment #8
majingas CreditAttribution: majingas commentedEdit: Dont use this patch
Comment #9
majingas CreditAttribution: majingas commentedSubmitting modified version of karenann's patch that doesn't use sites/all/modules path to work better with makefiles and profiles.
Comment #10
joelpittetComment #11
joelpittetThe patch in #1 looks a bit cleaner. Just needs to be updated for 7.
How about this patch?
Comment #12
joelpittetWhoops that needed to be a --relative git patch.
Comment #14
volegerLooks good.
Fixed.