[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [950] branches/1.2/LedgerSMB/Form.pm



Revision: 950
          http://svn.sourceforge.net/ledger-smb/?rev=950&view=rev
Author:   einhverfr
Date:     2007-03-19 19:45:44 -0700 (Mon, 19 Mar 2007)

Log Message:
-----------
Added NULL sanitation to Form.pm

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Form.pm

Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm	2007-03-20 01:55:37 UTC (rev 949)
+++ branches/1.2/LedgerSMB/Form.pm	2007-03-20 02:45:44 UTC (rev 950)
@@ -71,6 +71,7 @@
 		$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 @@
 	$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 @@
 	if (($self->{action} =~ /:/) || ($self->{nextsub} =~ /:/)){
 		$self->error("Access Denied");
 	}
+
+	for (keys %$self){ $self->{$_} =~ s/\000//g }
 	$self;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.