Changeset 909 in subversion
- Timestamp:
- Nov 1, 2007 5:51:14 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/func.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/func.inc
r875 r909 974 974 foreach (array('script', 'applet', 'object', 'embed', 'iframe') as $tag) 975 975 { 976 while (($pos = strpos($body_lc, '<'.$tag)) && ( $pos2 = strpos($body_lc, '</'.$tag.'>', $pos)))977 { 978 $ pos2 += strlen('</'.$tag.'>');979 $body = substr($body, 0, $pos) . substr($body, $ pos2, strlen($body)-$pos2);976 while (($pos = strpos($body_lc, '<'.$tag)) && (($pos2 = strpos($body_lc, '</'.$tag.'>', $pos)) || ($pos3 = strpos($body_lc, '>', $pos)))) 977 { 978 $end = $pos2 ? $pos2 + strlen('</'.$tag.'>') : $pos3 + 1; 979 $body = substr($body, 0, $pos) . substr($body, $end, strlen($body)-$end); 980 980 $body_lc = strtolower($body); 981 981 }
Note: See TracChangeset
for help on using the changeset viewer.
