[Petal] Taintmode with Petal 0.91

William McKee william at knowmad.com
Thu Apr 17 13:13:17 BST 2003


Hi Jean-Michel,

I've recently upgraded to Petal 0.91 and run into a problem with my
scripts. As a habit, I turn on taintchecking in my CGIs. It seems that
the new methods you've added for loading hashes are causing Perl's
taintmode to get activated.

In particular, line 35 of the Hash.pm file is where the error occurs. I
was able to untaint the $method variable and restore functionality.
Attached is a diff.

Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com
-------------- next part --------------
35c35,37
< 	    eval "use Petal::Hash::$module";
---
> 		$module =~ /^(\w+)$/;
> 		$module = $1;
> 		eval "use Petal::Hash::$module";


More information about the Petal mailing list