Changeset ad18d63 in github
- Timestamp:
- Feb 5, 2010 3:25:22 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- b620493a
- Parents:
- 8955ca6
- Files:
-
- 1 added
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/mail/func.inc (modified) (1 diff)
-
tests/mailfunc.php (modified) (1 diff)
-
tests/src/mailto.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
ra79e5f1 rad18d63 2 2 =========================== 3 3 4 - Fix handling of extended mailto links (with params) (#1486354) 4 5 - Fix sorting by date of messages without date header on servers without SORT (#1486286) 5 6 - Fix inconsistency when not using default table names (#1486467) -
program/steps/mail/func.inc
r96b679d rad18d63 1149 1149 $end = ' />'; 1150 1150 } 1151 else if (preg_match( "/^mailto:$EMAIL_ADDRESS_PATTERN/i", $attrib['href'], $mailto)) {1151 else if (preg_match('/^mailto:'.$EMAIL_ADDRESS_PATTERN.'(\?[^"\'>]+)?/i', $attrib['href'], $mailto)) { 1152 1152 $attrib['href'] = $mailto[0]; 1153 1153 $attrib['onclick'] = sprintf( 1154 1154 "return %s.command('compose','%s',this)", 1155 1155 JS_OBJECT_NAME, 1156 JQ($mailto[1] ));1156 JQ($mailto[1].$mailto[2])); 1157 1157 } 1158 1158 else if (!empty($attrib['href']) && $attrib['href'][0] != '#') { -
tests/mailfunc.php
r5570ad6 rad18d63 115 115 } 116 116 117 /** 118 * Test mailto links in html messages 119 */ 120 function test_mailto() 121 { 122 $part = $this->get_html_part('src/mailto.txt'); 123 124 // render HTML in normal mode 125 $html = rcmail_html4inline(rcmail_print_body($part, array('safe' => false)), 'foo'); 126 127 $mailto = '<a href="mailto:me@me.com?subject=this is the subject&body=this is the body"' 128 .' onclick="return rcmail.command(\'compose\',\'me@me.com?subject=this is the subject&body=this is the body\',this)">e-mail</a>'; 129 130 $this->assertPattern('|'.preg_quote($mailto, '|').'|', $html, "Extended mailto links"); 131 } 132 117 133 } 118 134
Note: See TracChangeset
for help on using the changeset viewer.
