JCHallgren has asked for the wisdom of the Perl Monks concerning the following question:
foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); # Un-Webify plus signs and %-encoding $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/<!--(.|\n)*-->//g; if ($allow_html != 1) { $value =~ s/<([^>]|\n)*>//g; } $FORM{$name} = $value;} # Print the Blank Response Subroutines &no_comments unless $FORM{'comments'}; &no_name unless $FORM{'realname'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Emergency! Our guestbook is getting trashed by HTML!
by ikegami (Patriarch) on Dec 17, 2004 at 15:21 UTC | |
by amw1 (Friar) on Dec 17, 2004 at 16:53 UTC | |
by manwhore (Initiate) on Jan 07, 2005 at 22:49 UTC | |
|
Re: Emergency! Our guestbook is getting trashed by HTML!
by Ovid (Cardinal) on Dec 17, 2004 at 16:01 UTC | |
|
Re: Emergency! Our guestbook is getting trashed by HTML!
by gellyfish (Monsignor) on Dec 17, 2004 at 16:03 UTC | |
by JCHallgren (Sexton) on Dec 18, 2004 at 07:44 UTC | |
|
Re: Emergency! Our guestbook is getting trashed by HTML!
by DrHyde (Prior) on Dec 20, 2004 at 09:29 UTC | |
by JCHallgren (Sexton) on Dec 21, 2004 at 17:53 UTC |