From: markt Date: Wed, 23 Apr 2008 21:52:11 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43617 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=44a9109743ef8aa21c2d9d07480179a23d8ca059;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43617 Correctly handle quotes in attribute values for tag(x) files. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@651082 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index 4f0a4f86d..183a3993f 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -1755,6 +1755,7 @@ class Generator { String value = attrs.getValue(i); if (value.indexOf('"') != -1) { quote = SINGLE_QUOTE; + value = value.replace("\"", DOUBLE_QUOTE); } out.print(quote); out.print(value); @@ -1777,6 +1778,7 @@ class Generator { String value = attrs.getValue(i); if (value.indexOf('"') != -1) { quote = SINGLE_QUOTE; + value = value.replace("\"", DOUBLE_QUOTE); } out.print(quote); out.print(value);