[dev] IMP: message page title [PATCH]
Tero Matinlassi
tero.matinlassi@edu.vantaa.fi
Sat, 6 Jul 2002 15:01:50 +0300
Don't do htmlspecialchars() twice on subject in the message page title
(already done in common-header.inc):
Index: message.php
===================================================================
RCS file: /repository/imp/message.php,v
retrieving revision 2.257.2.30
diff -u -r2.257.2.30 message.php
--- message.php 22 Jun 2002 05:43:53 -0000 2.257.2.30
+++ message.php 6 Jul 2002 11:57:46 -0000
@@ -485,7 +485,6 @@
} else {
$shortsub = $sub;
}
- $sub = htmlspecialchars($sub);
$shortsub = htmlspecialchars($shortsub);
} else {
$sub = $shortsub = _("[No Subject]");
@@ -531,6 +530,7 @@
}
$title = $imp['label'] . ": $sub";
+$sub = htmlspecialchars($sub);
$js_onLoad = null;
require IMP_TEMPLATES . '/common-header.inc';
-Tero
--
Tero Matinlassi