Debian Codegraph @

debian/patches/charset-decoding

raw
1 Description: Fix charset decoding in the PurePerl module (#405186)
2 Author: Niko Tyni <[email protected]>
3 Date: Sun, 04 Nov 2007 20:46:58 +0200
4
5 --- a/lib/XML/SAX/PurePerl/Productions.pm
6 +++ b/lib/XML/SAX/PurePerl/Productions.pm
7 @@ -39,7 +39,7 @@
8 # can't do this one without unicode
9 # $CombiningChar = qr/^$/msx;
10
11 - $NameChar = qr/^ (?: $BaseChar | $Digit | [._:-] | $Extender )+ $/x;
12 + $NameChar = qr/ (?: $BaseChar | $Digit | [._:-] | $Extender )+ /x;
13 PERL
14 die $@ if $@;
15 }
16 --- a/lib/XML/SAX/PurePerl.pm
17 +++ b/lib/XML/SAX/PurePerl.pm
18 @@ -677,7 +677,7 @@
19
20 return unless length($name);
21
22 - $name =~ /$NameChar/o or $self->parser_error("Name <$name> does not match NameChar production", $reader);
23 + $name =~ /^$NameChar+$/o or $self->parser_error("Name <$name> does not match NameChar production", $reader);
24
25 return $name;
26 }