Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Authentication-Credential-HTTP CPAN distribution.

Report information
The Basics
Id: 31036
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Authentication-Credential-HTTP

People
Owner: bobtfish [...] bobtfish.net
Requestors: takeru.inoue+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: 0.11



Subject: quote a realm value
Hi I'm sending a patch to quote a realm value, because it must be "quoted-string" by RFC2617 1.2. This bug was found in Atom Interop Experiments http://www.intertwingly.net/wiki/pie/November2007Interop . Regards,
Subject: HTTP.pm.patch
--- HTTP.pm-orig Mon Jan 1 04:48:34 2007 +++ HTTP.pm Thu Nov 29 01:09:34 2007 @@ -247,7 +247,10 @@ my ( $c, $opts ) = @_; if ( my $realm = $opts->{realm} ) { - return 'realm=' . String::Escape::qprintable($realm); +# return 'realm=' . String::Escape::qprintable($realm); + $realm = String::Escape::qprintable($realm); + $realm =~ s/\"/\\"/g; + return 'realm=' . qq{"$realm"}; } else { return; }
This has been fixed in version 0.11, which I have just pushed to CPAN.