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

SF.net SVN: ledger-smb: [70] trunk/menu.pl



Revision: 70
          http://svn.sourceforge.net/ledger-smb/?rev=70&view=rev
Author:   christopherm
Date:     2006-09-11 18:40:12 -0700 (Mon, 11 Sep 2006)

Log Message:
-----------
whitelisting $form{path} to one of two options

Modified Paths:
--------------
    trunk/menu.pl

Modified: trunk/menu.pl
===================================================================
--- trunk/menu.pl	2006-09-12 01:25:35 UTC (rev 69)
+++ trunk/menu.pl	2006-09-12 01:40:12 UTC (rev 70)
@@ -102,10 +102,7 @@
 $myconfig{dbpasswd} = unpack 'u', $myconfig{dbpasswd};
 map { $form->{$_} = $myconfig{$_} } qw(stylesheet timeout) unless ($form->{type} eq 'preferences');
 
-$form->{path} =~ s/\.\.\///g;
-if ($form->{path} !~ /^bin\//) {
-	$form->error($locale->text('Invalid path!')."\n");
-}
+if ($form{path} ne 'bin/lynx'){ $form{path} = 'bin/mozilla';}	
 
 # did sysadmin lock us out
 if (-f "$userspath/nologin") {


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