~ubuntu-branches/ubuntu/trusty/ruby-xmlparser/trusty

« back to all changes in this revision

Viewing changes to debian/patches/replaces_gt_symbol_by_enconded_version.patch

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-06-16 21:57:51 UTC
  • Revision ID: james.westby@ubuntu.com-20110616215751-b4ymizpvexd6qfm7
Tags: 0.7.2-1
Switch to gem2deb-based packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: xmlparser/lib/xml/dom/core.rb
 
2
===================================================================
 
3
--- xmlparser.orig/lib/xml/dom/core.rb  2010-05-12 13:36:36.000000000 -0400
 
4
+++ xmlparser/lib/xml/dom/core.rb       2010-05-12 13:38:46.000000000 -0400
 
5
@@ -1846,6 +1846,8 @@
 
6
             value << "&quot;"
 
7
           when ?<
 
8
             value << "&lt;"
 
9
+         when ?>
 
10
+           value << "&gt;"
 
11
           else
 
12
             value << code
 
13
           end
 
14
Index: xmlparser/lib/xml/dom2/attr.rb
 
15
===================================================================
 
16
--- xmlparser.orig/lib/xml/dom2/attr.rb 2010-05-12 13:39:12.000000000 -0400
 
17
+++ xmlparser/lib/xml/dom2/attr.rb      2010-05-12 13:40:15.000000000 -0400
 
18
@@ -122,7 +122,9 @@
 
19
             value << "&quot;"
 
20
           elsif c == "<"
 
21
             value << "&lt;"
 
22
-          else
 
23
+          elsif c == ">"
 
24
+           value << "&gt;"
 
25
+         else
 
26
             value << c
 
27
           end
 
28
         end