[freeside] Insecure Dependencies

ivan ivan at 420.am
Mon May 7 08:46:05 PDT 2001


> Insecure dependency in eval while running with -T switch at
> /usr/local/lib/perl5/site_perl/5.005/FS/Record.pm line 202

Apply this patch to Record.pm (or update to the current one from CVS),
reinstall the Perl modules, and restart Apache.

===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.14
retrieving revision 1.16
diff -u -r1.14 -r1.16
--- freeside/FS/FS/Record.pm    2001/04/15 12:56:30     1.14
+++ freeside/FS/FS/Record.pm    2001/05/07 15:42:02     1.16
@@ -169,6 +169,8 @@
 
 sub qsearch {
   my($table, $record, $select, $extra_sql ) = @_;
+  $table =~ /^([\w\_]+)$/ or die "Illegal table: $table";
+  $table = $1;
   $select ||= '*';
   my $dbh = dbh;
 
@@ -913,7 +915,7 @@
 
 =head1 VERSION
 
-$Id: Record.pm,v 1.14 2001/04/15 12:56:30 ivan Exp $
+$Id: Record.pm,v 1.16 2001/05/07 15:42:02 ivan Exp $
 
 =head1 BUGS

On Mon, Apr 30, 2001 at 01:07:31PM -0700, Wes Weems wrote:
> Ok...
> 
> Basically I am attempting to install freeside 1.3.0 on a new box (I've installed the previous version and had everything workign fine). Its going to have its own dedicated machine... and so apache will be run as "freeside". Ive installed the the modules
 specified and am working with postgres 7.1.
> 
> 
> I've chowned the files in htdocs dir to "freeside" and set the cgi's to 755.
> 
> When anything references cust_main.cgi, I get this warning:
> 
> Insecure dependency in eval while running with -T switch at /usr/local/lib/perl5/site_perl/5.005/FS/Record.pm line 202
> 
> I then proceeded to cvs update cust_main.cgi (per Ivans suggestion) and still got the very same error. I then proceeded to completely reinstall he whole package from cvs, and STILL get the same thing.
> 
> Has anyone had similar problems? I know I could just remove the -T but... a billion people have warned me that would be a stupid thing to do.
> 
> 
> Wes Weems

-- 
meow
_ivan



More information about the freeside-users mailing list