ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: nico on March 24, 2005, 08:46:54 pm
-
Double escape characters "\" caused the signup-list1.cgi script to fail.
I had to change this:
# sign up
$sys_cmd = $http_program . "\\?cgi=1\\&list=$list\\&email=$em";
if($fn ne '') { $sys_cmd = $sys_cmd . "\\&fname=$fn"; }
if($ln ne '') {
$ln = encode($ln);
$sys_cmd = $sys_cmd . "\\&lname=$ln";
}
To this before it worked:
# sign up
$sys_cmd = $http_program . "\?cgi=1\&list=$list\&email=$em";
if($fn ne '') { $sys_cmd = $sys_cmd . "\&fname=$fn"; }
if($ln ne '') {
$ln = encode($ln);
$sys_cmd = $sys_cmd . "\&lname=$ln";
}
-
I guess this depends on your operating system and Perl settings. The reason I use two slashes is so that Perl continues to pass an extra slash to the shell (wget) for certain characters, which is (only most often, apparently) required.