in reply to HTML::Restrict works on the command line, but not the web server
Note that one cause for the error might be your addition of ... or die "Error at process: $!". You don't do this in your test script that works from the command line.
To get a better description of the error (if there is an error raised), I would wrap the offending line in an eval {} block:
my $ok = eval { $value = $hr->process($value); 1; }; if( ! $ok ) { die $@; # reraise our error };
If that still leaves an empty value in $value, then maybe the problem is in HTML::Restrict. Maybe you need to pass it some rules as to what is allowed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Restrict works on the command line, but not the web server
by Zimtobi (Initiate) on Apr 28, 2016 at 10:32 UTC | |
by Corion (Patriarch) on Apr 28, 2016 at 10:44 UTC |