#21 Error with Cookie-Header-Code in Subs.pl

1 Gold - SP 1.2
closed-fixed
nobody
None
8
2003-02-04
2003-02-03
No

http://www.yabbforum.com/community/YaBB.pl?
board=Y1GoldSPs;action=display;num=1043894595

syntax error at ./Sources/Subs.pl line 61, near ""Set-
Cookie: $_\n" foreach " syntax error
at ./Sources/Subs.pl line 61, near "})"
on a fresh install on some servers

Solution:
in subs.pl, sub header
<search for>
if ($params{'-cookie'}) {
$ret .= "Set-Cookie: $_\n" foreach (@{$params{'-
cookie'}});
}
</search for>
<replace>
if ($params{'-cookie'}) {
my(@cookie) = ref($params{'-cookie'}) && ref($params
{'-cookie'}) eq 'ARRAY' ? @{$params{'-cookie'}} :
$params{'-cookie'};
foreach (@cookie) {
$ret .= "Set-Cookie: $_\n";
}
}
</replace>

Discussion

  • Torsten Mrotz

    Torsten Mrotz - 2003-02-03
    • priority: 5 --> 8
    • status: open --> closed-remind
     
  • Torsten Mrotz

    Torsten Mrotz - 2003-02-04

    Logged In: YES
    user_id=289236

    this only occurs on some servers and should be fixed with the
    code above.
    SP1.2.1 will include this fix.

     
  • Torsten Mrotz

    Torsten Mrotz - 2003-02-04
    • status: closed-remind --> closed-fixed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks