Author Topic: Error in the signup script due to double escapes  (Read 1365 times)

nico

  • Posts: 1
    • View Profile
Error in the signup script due to double escapes
« 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";
   }

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Error in the signup script due to double escapes
« Reply #1 on: March 24, 2005, 09:31:56 pm »
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.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting