Re: OT: Validating user input

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60013
interpreted = N
texte = Thanks for the feedback. So if I'm setting up a routine: 1. mark ok webdna/html 2. replace bad webdna/html/scripts etc. If an error is not fixable, 3. Send errors to a table for reporting and request resubmission. Does anyone have a trapping routine that works well for taking input for articles/CMS/blogging and input for emails? If all errors fixable then: 3. revert ok webdna/html 4. take action (post/store/write/send/whatever) Bill -----Original Message----- From: Stuart Tremain Sent: Fri, 12 Nov 2004 11:20:51 +1100 To: "WebDNA Talk" Subject: Re: OT: Validating user input This would be a start: Use grep to replace the WANTED HTML with something =%B% then use the [RemoveHTML] tag and then use grep to change the %B% back to Use middle to remove anything relating to scripts - middle out between the opening and closing tags [RemoveHTML]Any Text[/RemoveHTML] New in 4.0 Removes HTML or WebDNA tags from a string of text. To automatically strip out HTML or WebDNA tags from text, put the text inside a [RemoveHTML] context. Any HTML found in the text will be removed, leaving just the plain non-HTML text behind. Alternately you can specify that WebDNA be removed instead. [RemoveHTML RemoveWebDNA=T]Any Text[/RemoveHTML]  (Optional) T or F to indicate that you also want to remove WebDNA from the text. HTML is always removed from the text. Default is to remove HTML only. [RemoveHTML RemoveWebDNA=T&ReplaceWith=xyz]Any Text[/RemoveHTML] Text with which you want to replace the HTML sequences. Defaults to nothing. On 12/11/2004, at 9:58 AM, devaulw@onebox.com wrote: > Does any one have a routine for validating user input? I'm thinking > about preventing some but not all HTML, no WebDNA, no scripts and the > like. I'm just curious to know if there is a good methodology or web > page with this topic discussed. > > Thanks, > Bill > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: Validating user input ( devaulw@onebox.com 2004)
  2. Re: OT: Validating user input ( Stuart Tremain 2004)
  3. OT: Validating user input ( devaulw@onebox.com 2004)
Thanks for the feedback. So if I'm setting up a routine: 1. mark ok webdna/html 2. replace bad webdna/html/scripts etc. If an error is not fixable, 3. Send errors to a table for reporting and request resubmission. Does anyone have a trapping routine that works well for taking input for articles/CMS/blogging and input for emails? If all errors fixable then: 3. revert ok webdna/html 4. take action (post/store/write/send/whatever) Bill -----Original Message----- From: Stuart Tremain Sent: Fri, 12 Nov 2004 11:20:51 +1100 To: "WebDNA Talk" Subject: Re: OT: Validating user input This would be a start: Use grep to replace the WANTED HTML with something =%B% then use the [removehtml] tag and then use grep to change the %B% back to Use middle to remove anything relating to scripts - middle out between the opening and closing tags [removehtml]Any Text[/RemoveHTML] New in 4.0 Removes HTML or WebDNA tags from a string of text. To automatically strip out HTML or WebDNA tags from text, put the text inside a [removehtml] context. Any HTML found in the text will be removed, leaving just the plain non-HTML text behind. Alternately you can specify that WebDNA be removed instead. [RemoveHTML RemoveWebDNA=T]Any Text[/RemoveHTML]  (Optional) T or F to indicate that you also want to remove WebDNA from the text. HTML is always removed from the text. Default is to remove HTML only. [RemoveHTML RemoveWebDNA=T&ReplaceWith=xyz]Any Text[/RemoveHTML] Text with which you want to replace the HTML sequences. Defaults to nothing. On 12/11/2004, at 9:58 AM, devaulw@onebox.com wrote: > Does any one have a routine for validating user input? I'm thinking > about preventing some but not all HTML, no WebDNA, no scripts and the > like. I'm just curious to know if there is a good methodology or web > page with this topic discussed. > > Thanks, > Bill > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ devaulw@onebox.com

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:

Date Bug (1998) Bulletin Board (1998) [feature req?]DeleteFounditem (2002) [WebDNA] Mass email using WebDNA (2008) Fun with dates (1997) Can this be done? (2003) A question on sub-categories (1997) Dummy Credit Card Number for debug? (1997) Search a date field by month only... (1999) Summing fields (1997) WC TableGrinder (1997) [OrderFile] error (1999) Weird + issue (2002) $Replace with [founditems] (1997) Wireless WebDNA available today! (2000) Make sure I understand this??? (1997) More on the email templates (1997) Custom WebCat Prefs ... (1997) WebCatalog [FoundItems] Problem - LONG - (1997) WebDNA Fusebox was (European Convention) (2004)