Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML::Parser::Expat::xml_escape only escapes first occurence of some chars [rt.cpan.org #21497] #41

Open
toddr opened this issue Sep 24, 2019 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented Sep 24, 2019

Migrated from rt.cpan.org#21497 (status was 'new')

Requestors:

From vlad.romascanu@ericsson.com on 2006-09-14 20:30:28
:

Hello,

This applies to XML-Parser-2.34 and earlier.

XML::Parser::Expat::xml_escape only escapes the first quote (be it double or
simple).
Shouldn't "/g;" be added to s/// in Expat.pm?

    elsif ($_ eq '"') {
      $text =~ s/\"/\"/g;
    }
    elsif ($_ eq "'") {
      $text =~ s/\'/\'/g;
    }

Cheers,
V.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant