- Timestamp:
- Jul 16, 2008, 5:16:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/trunk/webapp/lib/smarty_plugins/modifier.t_url2cmd.php
r7572 r7716 5 5 */ 6 6 7 function smarty_modifier_t_url2cmd($string, $type = '', $target_c_member_id = '' )7 function smarty_modifier_t_url2cmd($string, $type = '', $target_c_member_id = '', $is_html = true) 8 8 { 9 if ( in_array($type, db_get_url2a_denied_list())) {10 // HTMLエスケープされていない場合 9 if (!$is_html || in_array($type, db_get_url2a_denied_list())) { 10 // HTMLエスケープされていない場合、 t_url2a の変換対象でない場合 11 11 // ", ', </a> がURLの後に続く場合はマッチさせない 12 12 $url_pattern = '/https?:\/\/([a-zA-Z0-9\-.]+)\/?(?:[a-zA-Z0-9_\-\/.,:;~?@=+$%#!()&])*(?!["\'a-zA-Z0-9_\-\/.,:;~?@=+$%#!()&]|<\/a>)/';
Note: See TracChangeset
for help on using the changeset viewer.