Re: [WebDNA] Putting '&search' into URL killing all search contexts
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105342
interpreted = N
texte = Olin Lagon wrote:> If you are not using commands in the URL (ex:> http://yourserver.com/xx.tpl?command=Search&db=SomeDatabase.db&eqNAMEdata=Gr> ant), you can fix this easily by putting the following into your Pre-Parse> Script:> > [showif [search]![raw][search][/raw]]> [redirect /]> [/showif]> > If the variable search is defined at all, the request is rerouted to the> page of your choice, in this case your homepage.Olin.. excellent.. as with Brian's code, you can add to that listany context in which you may feel would lead to some compromise ofinformation... for instance, if don't want to reveal database names..append, replace, search etc.. could be added. Same for encryptionseeds or showif's with hardcoded usename/password checks or something.Very creative.Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Associated Messages, from the most recent to the oldest:
Olin Lagon wrote:> If you are not using commands in the URL (ex:> http://yourserver.com/xx.tpl?command=Search&db=SomeDatabase.db&eqNAMEdata=Gr> ant), you can fix this easily by putting the following into your Pre-Parse> Script:> > [showif
[search]!
[raw][search][/raw]]> [redirect /]> [/showif]> > If the variable search is defined at all, the request is rerouted to the> page of your choice, in this case your homepage.Olin.. excellent.. as with Brian's code, you can add to that listany context in which you may feel would lead to some compromise ofinformation... for instance, if don't want to reveal database names..append, replace, search etc.. could be added. Same for encryptionseeds or showif's with hardcoded usename/password checks or something.Very creative.Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
FEW QUESTIONS (1997)
Initiating NewCart (1997)
Pithy questions on webcommerce & siteedit (1997)
PCS Frames (1997)
One more time (1997)
[WebDNA] math variables bug in OSX 7.0 / 7.1 (2012)
[OT] OSX (unix) favorite text editor. (2002)
WebCat2_Mac RETURNs in .db (1997)
Referrer field to header field conversion (1997)
Part Html part WebDNA (1997)
[WebDNA] [OT] Steve Jobs (2011)
Configuring E-mail (1997)
Protecting Files (2005)
How do you hide [math]stuff[/math] (1997)
[WebDNA] search comparison: ends with (2016)
Intermitent problem using [referrer] (1997)
setitems, one more thing (1997)
NT License trade for Mac (2000)
Search in 2 or more catalogs (1997)
SetHeader context (1998)