From edf9b69bc47405c10af2e06764c608e4b9954947 Mon Sep 17 00:00:00 2001 From: jasonjayr Date: Thu, 16 Nov 2006 03:56:53 +0000 Subject: Merging Fix from trunk, make $self a local so calling Form->new() repeatly doesn't change one global $self git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@640 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index cb109a56..6dcaec79 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -57,7 +57,8 @@ sub new { elsif ($ARGV[0]) { $_ = $ARGV[0]; } - + + my $self = {}; %$self = split /[&=]/; for (keys %$self) { $self->{$_} = unescape("", $self->{$_}) } -- cgit v1.2.3