]> git.uio.no Git - usit-rt.git/blobdiff - lib/RT/Template.pm
Upgrade to 4.0.13
[usit-rt.git] / lib / RT / Template.pm
index bca3938ea6edbc314a6250281267687a7fee4762..fd4b511e9fefd7999df54859db8c983a0d7b9ec2 100644 (file)
@@ -335,7 +335,7 @@ sub Parse {
     my ($rv, $msg);
 
 
-    if ($self->Content =~ m{^Content-Type:\s+text/html\b}im) {
+    if (not $self->IsEmpty and $self->Content =~ m{^Content-Type:\s+text/html\b}im) {
         local $RT::Transaction::PreferredContentType = 'text/html';
         ($rv, $msg) = $self->_Parse(@_);
     }