* Import some code from banana (list_header_decode)
* rpc do not remove 0x0A (\n) anymore
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@689
839d8a87-29fc-0310-9880-
83ba4fa771e5
* Lists:
- Switch to the new URI scheme. -MC
+ - Do not remove line breaks in message moderation preview -FRU
* Marketing:
- Switch to the new URI scheme. -MC
else:
return default
-BASEURL = get_config('Core', 'baseurl')
MYSQL_USER = get_config('Core', 'dbuser')
MYSQL_PASS = get_config('Core', 'dbpwd')
h = Utils.oneline(s, 'iso-8859-1')
else:
h = s
- h = str('').join(re.split('[\x00-\x1f]+', s))
- return Utils.uquote(h.replace('&', '&').replace('>', '>').replace('<', '<'))
+ h = str('').join(re.split('[\x00-\x09\x0B\x1f]+', s))
+ return Utils.uquote(h.replace('&', '&').replace('>', '>').replace('<', '<'))
def to_forlife(email):
try:
$page->changeTpl('listes/moderate.tpl');
$page->register_modifier('qpd', 'quoted_printable_decode');
+ $page->register_modifier('hdc', 'list_header_decode');
if (Env::has('sadd')) { /* 4 = SUBSCRIBE */
$this->client->handle_request($liste,Env::v('sadd'),4,'');
{foreach from=$mails item=m}
<tr class='{cycle values="pair,impair"}'>
<td>{$m.sender}</td>
- <td>{$m.subj|default:"[pas de sujet]"}</td>
+ <td>{$m.subj|hdc|default:"[pas de sujet]"}</td>
<td class='right'>{$m.size}o</td>
<td class='right'>{$m.stamp|date_format:"%X<br />%x"}</td>
<td class='action'>
<table class='tinybicol' cellpadding='0' cellspacing='0'>
<tr>
<td class='titre'>émetteur</td>
- <td>{$mail.sender}</td>
+ <td>{mailto address=$mail.sender}</td>
</tr>
<tr>
<td class='titre'>sujet</td>
- <td>{$mail.subj}</td>
+ <td>{$mail.subj|hdc}</td>
</tr>
<tr>
<td class='titre'>taille</td>