fix 'Can't call method "setup" on an undefined value' error when using into rates...
[freeside.git] / test / cgi-test
index e88bfd7..85074d2 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/perl -Tw
 #
-# $Id: cgi-test,v 1.1 1999-04-08 13:05:40 ivan Exp $
-#
 # This is the beginning of a test suite for the web interface.
 # It's also excellent for populating your database with some meaningful test
 # data.  (a derivative is used by the web demo)
@@ -10,11 +8,6 @@
 # Usage: cgi-test http://base.freeside.url/with/path/ username password
 # (Yes, if you were properly paranoid and are using SSL, you'll need to get
 #  libwww-perl working with SSL to use this.)
-#
-# $Log: cgi-test,v $
-# Revision 1.1  1999-04-08 13:05:40  ivan
-# web interface tester / sample data creator
-#
 
 use strict;
 #use diagnostics;
@@ -23,6 +16,10 @@ use CGI;
 use LWP::UserAgent;
 
 my ( $base_url, $username, $password ) = ( shift, shift, shift );
+#trust 'em
+$base_url =~ /^(.*)$/; $base_url = $1;
+$username =~ /^(.*)$/; $username = $1;
+$password =~ /^(.*)$/; $password = $1;
 
 my @data = &big_ugly_data_structure;