From: Sven Schöling Date: Tue, 6 Mar 2007 14:00:52 +0000 (+0000) Subject: Paranoiasicherheitscheck in IR.pm X-Git-Tag: release-2.4.3^2~624 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1fa915384134dc8ebff87b36a2ee0b99b76bcd7a;p=kivitendo-erp.git Paranoiasicherheitscheck in IR.pm --- diff --git a/SL/IS.pm b/SL/IS.pm index 6b9018d95..1ee47f209 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2230,6 +2230,10 @@ sub has_storno { $main::lxdebug->leave_sub() and return 0 unless ($form->{id}); + # make sure there's no funny stuff in $table + # ToDO: die when this happens and throw an error + $main::lxdebug->leave_sub() and return 0 if ($table =~ /\W/); + my $dbh = $form->dbconnect($myconfig); my $query = qq|SELECT storno FROM $table WHERE id = ?|;