Changeset 5318 for trunk/expressoMail1_2
- Timestamp:
- 01/06/12 10:56:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5317 r5318 1860 1860 1861 1861 $regs_found = array(); 1862 $tags_found = @mb_eregi("<style\b[^>]*>(.*?)</style[^>]*>", $body, $regs_found);1862 $tags_found = preg_match_all("@<style[^>]*>.*?</style[^>]*>@s", $body, $regs_found); 1863 1863 $wrapper_class = 'ExpressoCssWrapper' . time(); 1864 1864 1865 1865 foreach ($regs_found as $block_found) { 1866 $n_start = strpos($block_found , '>') + 1;1867 $n_length = strrpos($block_found , '<') - $n_start;1868 $bf_innerHTML = substr($block_found , $n_start, $n_length);1869 1866 $n_start = strpos($block_found[0], '>') + 1; 1867 $n_length = strrpos($block_found[0], '<') - $n_start; 1868 $bf_innerHTML = substr($block_found[0], $n_start, $n_length); 1869 1870 1870 $bf_innerHTML = mb_ereg_replace('<!--', '', $bf_innerHTML); 1871 1871 $bf_innerHTML = mb_ereg_replace('-->', '', $bf_innerHTML); 1872 1872 1873 1873 $css->parse($bf_innerHTML); 1874 1874 … … 1890 1890 unset($css->css[41][$key]); 1891 1891 } 1892 1892 1893 1893 $body = str_replace($block_found, '<style>' . $css->print->plain() . '</style>', $body); 1894 1894 }
Note: See TracChangeset
for help on using the changeset viewer.