Notice: Undefined index: HTTP_REFERER in autologout_page_attachments() (line 166 of /home/web/modules/contrib/autologout/autologout.module)

I am seeing this error with $_SERVER['HTTP_REFERER'] not set, it should fall back to home or something like that if not set.

CommentFileSizeAuthor
#2 3114711-2.patch1.16 KBbcizej

Comments

anoopjohn created an issue. See original summary.

bcizej’s picture

StatusFileSize
new1.16 KB

Hi, thanks for reporting this, however in the latest dev branch there is no code like that on line 166, but it is on line 238.

I cleaned up the code a bit in that part and added checks for HTTP_REFERER existance.

bcizej’s picture

Status: Active » Needs review
ngkoutsaik’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch. I tested it and it appropriately handles the error.

boshtian’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.