Skip to content

Commit

Permalink
Fix #3115 "Output control does not escape script element"
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Feb 10, 2017
1 parent 6e0133b commit 85574aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/orbeon/saxon/event/HTML1252Emitter.java
Expand Up @@ -96,7 +96,8 @@ public class HTML1252Emitter extends HTMLEmitter {

if (c==0) {
// used to switch escaping on and off
disabled = !disabled;
// See https://github.com/orbeon/orbeon-forms/issues/3115
// disabled = !disabled;
} else if (disabled) {
writer.write(c);
} else if (c<=127) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/orbeon/saxon/event/XML1252Emitter.java
Expand Up @@ -63,7 +63,8 @@ public class XML1252Emitter extends XMLEmitter {
final char c = chars.charAt(i);
if (c==0) {
// used to switch escaping on and off
disabled = !disabled;
// See https://github.com/orbeon/orbeon-forms/issues/3115
// disabled = !disabled;
} else if (disabled) {
if (c > 127) {
if (UTF16.isHighSurrogate(c)) {
Expand Down

0 comments on commit 85574aa

Please sign in to comment.