#2401 postfinger.cgi parsing master.cf problem

1.250
closed
5
2006-02-14
2006-01-22
Anonymous
No

postfinger.cgi line 198:
($postf1,$postf2,$postf3,$postf4,$postf5,$postf6,$postf7,$postf8)=split(/
/,$postfinger,8);

does not the job if the spaces are not always the same...

this is my solution:

$postfinger =~
/^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/
;

($postf1,$postf2,$postf3,$postf4,$postf5,$postf6,$postf7,$postf8)=($1,$2,$3,$4,$5,$6,$7,$8);

jos@x-tend.be

Discussion

  • Nobody/Anonymous

    the file with my solution

     
  • Jamie Cameron

    Jamie Cameron - 2006-02-14

    Logged In: YES
    user_id=129364

    Thanks - this will be fixed in Webmin 1.270.

     
  • Jamie Cameron

    Jamie Cameron - 2006-02-14
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks