https://issues.apache.org/bugzilla/show_bug.cgi?id=45015



--- Comment #11 from Sean Stephenson <sean.r.stephen...@gmail.com> 2009-08-25 
08:50:53 PDT ---
Thanks to Cedric for the helpful regex.  I've modified it a bit so it can
actually be used to replace and fix (most) instances of this problem
automatically.  If you have an IDE that supports regex replace (I used IDEA),
do a replace in path for this regex:

(<\w+:(?:[^>]|<%=[^%]+%>)+=)"([^<"]*<%=[^%]*"[^%]*%>[^"]*)"

For the replacement text, enter:

$1'$2'

Doing this was a necessity for me as I had to make thousands of changes to over
300 JSP files on the code base I'm working on.  I have to say I think this
should have been implemented as an opt-in fix via a config or something, rather
than breaking backward compatibility for every tomcat user.  Please be more
careful in the future guys.  We rely on you to not do things like this to us.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to