diff options
Diffstat (limited to 'LedgerSMB/Form.pm')
-rwxr-xr-x | LedgerSMB/Form.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index f0cb545e..d5e699b4 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -71,6 +71,7 @@ sub new { $self->{nextsub} =~ s/( |-|,|\#|\/|\.$)/_/g; } + $self->{login} =~ s/[^a-zA-Z0-9._+@'-]//g; $self->{menubar} = 1 if $self->{path} =~ /lynx/i; #menubar will be deprecated, replaced with below @@ -79,6 +80,7 @@ sub new { $self->{version} = "1.2.0 Release Candidate 4"; $self->{dbversion} = "1.2.0"; + bless $self, $type; if ($self->{path} ne 'bin/lynx'){ $self->{path} = 'bin/mozilla';} @@ -93,6 +95,8 @@ sub new { if (($self->{action} =~ /:/) || ($self->{nextsub} =~ /:/)){ $self->error("Access Denied"); } + + for (keys %$self){ $self->{$_} =~ s/\000//g } $self; } |