Yet more well-formedness Phun

Error messages need to be escaped.
This commit is contained in:
Jacques Distler 2008-03-13 18:06:16 -05:00
parent 435bbfcd36
commit f739077976

View file

@ -122,7 +122,7 @@ class ApplicationController < ActionController::Base
<html xmlns="http://www.w3.org/1999/xhtml"><body>
<h2>Internal Error</h2>
<p>An application error occurred while processing your request.</p>
<!-- \n#{exception}\n#{exception.backtrace.join("\n")}\n -->
<!-- \n#{exception.to_s.is_utf8? ? exception.to_s.gsub!(/-{2,}/, '- -') : ''}\n#{exception.backtrace.join("\n")}\n -->
</body></html>
EOL
end