Changeset 7655 for trunk/workflow/inc/smarty/plugins/function.mailto.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/smarty/plugins/function.mailto.php
r795 r7655 89 89 90 90 $mail_parm_vals = ''; 91 for ($i=0; $i<count($mail_parms); $i++) { 91 $mail_parms_count = count($mail_parms); 92 for ($i=0; $i<$mail_parms_count; ++$i) { 92 93 $mail_parm_vals .= (0==$i) ? '?' : '&'; 93 94 $mail_parm_vals .= $mail_parms[$i]; … … 105 106 106 107 $js_encode = ''; 107 for ($x=0; $x < strlen($string); $x++) {108 for ($x=0; $x < strlen($string); ++$x) { 108 109 $js_encode .= '%' . bin2hex($string[$x]); 109 110 } … … 114 115 $string = '<a href="mailto:'.$address.'" '.$extra.'>'.$text.'</a>'; 115 116 116 for($x = 0, $y = strlen($string); $x < $y; $x++) {117 for($x = 0, $y = strlen($string); $x < $y; ++$x ) { 117 118 $ord[] = ord($string[$x]); 118 119 } … … 138 139 } 139 140 $address_encode = ''; 140 for ($x=0; $x < strlen($address); $x++) {141 for ($x=0; $x < strlen($address); ++$x) { 141 142 if(preg_match('!\w!',$address[$x])) { 142 143 $address_encode .= '%' . bin2hex($address[$x]); … … 146 147 } 147 148 $text_encode = ''; 148 for ($x=0; $x < strlen($text); $x++) {149 for ($x=0; $x < strlen($text); ++$x) { 149 150 $text_encode .= '&#x' . bin2hex($text[$x]).';'; 150 151 }
Note: See TracChangeset
for help on using the changeset viewer.