ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 7271


Ignore:
Timestamp:
May 18, 2008, 7:37:31 PM (15 years ago)
Author:
ebihara
Message:

#2424:メール受信通知メールのタイトルおよび本文にhtmlspecialchars()がかかっていたのを修正

Location:
OpenPNE/trunk/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/smarty_plugins/modifier.t_truncate.php

    r4933 r7271  
    1212 * @param string $etc
    1313 * @param int    $rows
     14 * @param bool   $is_htmlspecialchars
    1415 * @return string
    1516 */
    16 function smarty_modifier_t_truncate($string, $width = 80, $etc = '', $rows = 1)
     17function smarty_modifier_t_truncate($string, $width = 80, $etc = '', $rows = 1, $is_htmlspecialchars = true)
    1718{
    1819    $rows = (int)$rows;
     
    6162    $string = implode("\n", $result);
    6263
    63     return nl2br(htmlspecialchars($string, ENT_QUOTES, 'UTF-8'));
     64    if ($is_htmlspecialchars) {
     65        $string = htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
     66    }
     67
     68    return nl2br($string);
    6469}
    6570
  • OpenPNE/trunk/webapp/templates/mail/m_ktai_message_zyushin.tpl

    r7096 r7271  
    88({if $subject})
    99件名:
    10 ({$subject|t_truncate:50:"..."})
     10({$subject|t_truncate:50:"...":1:0})
    1111({/if})
    1212
    1313({if $body})
    1414本文:
    15 ({$body|t_truncate:150:"..."})
     15({$body|t_truncate:150:"...":1:0})
    1616({/if})
    1717
Note: See TracChangeset for help on using the changeset viewer.