summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment/edit.html.tmpl
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-06-28 09:18:02 +0200
committerbbaetz%student.usyd.edu.au <>2002-06-28 09:18:02 +0200
commitd5f30d8dfda359d6761d164d3c650adf1716213b (patch)
tree4f2ee142ba674fa30f1b0f45781ed935e3b405d5 /template/en/default/attachment/edit.html.tmpl
parent0b729766ba6298c596b6f9e1e5452642306d5e3e (diff)
downloadbugzilla-d5f30d8dfda359d6761d164d3c650adf1716213b.tar.gz
bugzilla-d5f30d8dfda359d6761d164d3c650adf1716213b.tar.xz
Bug 148488 - more HTML validation fixes
r=jouni, gerv
Diffstat (limited to 'template/en/default/attachment/edit.html.tmpl')
-rw-r--r--template/en/default/attachment/edit.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 873f73b59..ca72647dd 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -53,7 +53,7 @@
var contentType = '[% contenttype %]';
if ( contentType == 'text/plain' )
{
- theContent = theContent.replace( /^<html><head\/><body><pre>/i , "" );
+ theContent = theContent.replace( /^<html><head\/?><body><pre>/i , "" );
theContent = theContent.replace( /<\/pre><\/body><\/html>$/i , "" );
theContent = theContent.replace( /&lt;/gi , "<" );
theContent = theContent.replace( /&gt;/gi , ">" );