Re: Raspberry Pi: Beginners Web App Example

2012-08-13 Thread Perforin
On 08/13/2012 11:57 AM, Shlomi Fish wrote: > Hello Perforin, > > On Mon, 13 Aug 2012 08:18:13 +0200 > Perforin wrote: > >> On 08/13/2012 12:45 AM, Owen wrote: >>> On Fri, 10 Aug 2012 13:41:51 -0500 >>> Bill Stephenson wrote: >>> So, I've been working on an example web based app that demonstr

Re: A regex problem?

2012-08-13 Thread Andy Bach
On Mon, Aug 13, 2012 at 5:42 AM, Owen wrote: > I have a web form with a text area that I feed back through a cgi > script and "filter" the text with; > > $q1_elaborate =~ s/[^[:alpha:]' .-]//g; > quotemeta($q1_elaborate); > > However, it removes line feeds as well, so maybe that code is not al

A regex problem?

2012-08-13 Thread Owen
I have a web form with a text area that I feed back through a cgi script and "filter" the text with; $q1_elaborate =~ s/[^[:alpha:]' .-]//g; quotemeta($q1_elaborate); I admit to doing a google search on "perl remove malicious code" and took that code from one of the results.(and not quite und

Re: Raspberry Pi: Beginners Web App Example

2012-08-13 Thread Shlomi Fish
Hello Perforin, On Mon, 13 Aug 2012 08:18:13 +0200 Perforin wrote: > On 08/13/2012 12:45 AM, Owen wrote: > > On Fri, 10 Aug 2012 13:41:51 -0500 > > Bill Stephenson wrote: > > > >> So, I've been working on an example web based app that demonstrates > >> pretty much how I've been doing things lat