|
|
 |
 |
 |
manilaSuite.referer.checkSelf
The referer check for "trojan horse" does not cater to browsers that leave the username and password (iCab 1.3 was one, and Palm WAP browsers are reputedly the same). Watch for that case and strip them out before checking.
Amended Script
| |
manilaSuite.referer.mustNotBeEmpty () |
| |
local (pta = html.getPageTableAddress ()) |
| |
local (lowerReferer = string.lower (pta^.requestHeaders.referer)) |
| |
local (lowerExpectedReferer = string.lower (pta^.url)) |
| |
if lowerExpectedReferer endsWith "/#objectnotfoundhandler" |
| |
if lowerExpectedReferer endsWith "/default" |
| |
if not (lowerReferer beginsWith lowerExpectedReferer) |
Relative to Frontier version 9.7b10
|