New Message: Re: Cannot render because of #security
webmaster at userland.com
webmaster at userland.com
Wed Apr 23 13:08:51 PDT 2003
A new message was posted:
Address: http://frontier.userland.com/discuss/msgReader$11725
By: Eric Soroos (eric-ul at soroos.net)
#security is early enough in the process that Mainresponder hasn't set the page table yet. Its members are in scope, but you can't call html.getPageTableAddress().
If you're doing this in general, one defensive strategy is to try/else the call to getPageTableAddress.
local
pta
try
pta = html.getPageTableAddress()
else
// pta is undefined, need to look somewhere else.
if defined(client)
pta = @parentOf(client)^
***Warning This is a hack.
What I've done in my security scripts is the following:
local {
pta = @parentOf(client)^}
(Client being a member of the table that is guaranteed to exist. )
Everything that gets called by my #security that would ordinarily call getPageTableAddress has an optional pta parameter passed into it.
It could probably also be fixed by calling html.setPageTableAddress(@parentOf(client)^), but I haven't checked to see if that will cause other problems with mainresponder.
eric
This is a Manila site.. http://manila.userland.com/.
More information about the Frontier-Server
mailing list