Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2401 postfinger.cgi parsing master.cf problem

1.250
closed
Jamie Cameron
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

  • the file with my solution

     
    Attachments
  • 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