summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
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
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')
-rw-r--r--template/en/default/attachment/edit.html.tmpl2
-rw-r--r--template/en/default/attachment/show-multiple.html.tmpl2
2 files changed, 2 insertions, 2 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 , ">" );
diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl
index b3c05f2e2..6d192ad89 100644
--- a/template/en/default/attachment/show-multiple.html.tmpl
+++ b/template/en/default/attachment/show-multiple.html.tmpl
@@ -86,7 +86,7 @@
[% ELSE %]
<p><b>
Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.
- <a href="attachment.cgi?id=[% a.attachid %]&action=view">Download the attachment instead</a>.
+ <a href="attachment.cgi?id=[% a.attachid %]&amp;action=view">Download the attachment instead</a>.
</b></p>
[% END %]
</div>