diff options
author | tcit <tcit@tcit.fr> | 2014-07-24 22:01:35 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-07-24 22:01:35 +0200 |
commit | d07abb5c42a816c94d05c5a1d7a78122e1b8b65c (patch) | |
tree | 38c9be0fba7c530cc1b4b6b43d127c38bfb45e37 /inc/3rdparty/libraries/mpdf/classes/cssmgr.php | |
parent | fb9df0c269f36703909b8b259abbdbed29881ecd (diff) | |
download | wallabag-d07abb5c42a816c94d05c5a1d7a78122e1b8b65c.tar.gz wallabag-d07abb5c42a816c94d05c5a1d7a78122e1b8b65c.tar.zst wallabag-d07abb5c42a816c94d05c5a1d7a78122e1b8b65c.zip |
updated mpdf to 5.7.2
Diffstat (limited to 'inc/3rdparty/libraries/mpdf/classes/cssmgr.php')
-rw-r--r-- | inc/3rdparty/libraries/mpdf/classes/cssmgr.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/3rdparty/libraries/mpdf/classes/cssmgr.php b/inc/3rdparty/libraries/mpdf/classes/cssmgr.php index 9bbbed9c..db325034 100644 --- a/inc/3rdparty/libraries/mpdf/classes/cssmgr.php +++ b/inc/3rdparty/libraries/mpdf/classes/cssmgr.php | |||
@@ -221,9 +221,8 @@ function ReadCSS($html) { | |||
221 | } | 221 | } |
222 | } | 222 | } |
223 | 223 | ||
224 | // mPDF 5.5.13 | ||
225 | // Replace any background: url(data:image... with temporary image file reference | 224 | // Replace any background: url(data:image... with temporary image file reference |
226 | preg_match_all("/(url\(data:image\/(jpeg|gif|png);base64,(.*)\))/si", $CSSstr, $idata); | 225 | preg_match_all("/(url\(data:image\/(jpeg|gif|png);base64,(.*?)\))/si", $CSSstr, $idata); // mPDF 5.7.2 |
227 | if (count($idata[0])) { | 226 | if (count($idata[0])) { |
228 | for($i=0;$i<count($idata[0]);$i++) { | 227 | for($i=0;$i<count($idata[0]);$i++) { |
229 | $file = _MPDF_TEMP_PATH.'_tempCSSidata'.RAND(1,10000).'_'.$i.'.'.$idata[2][$i]; | 228 | $file = _MPDF_TEMP_PATH.'_tempCSSidata'.RAND(1,10000).'_'.$i.'.'.$idata[2][$i]; |
@@ -699,6 +698,13 @@ function fixCSS($prop) { | |||
699 | } | 698 | } |
700 | else { $newprop[$k] = $v; } | 699 | else { $newprop[$k] = $v; } |
701 | } | 700 | } |
701 | else if ($k == 'LIST-STYLE') { // mPDF 5.7.2 | ||
702 | if (preg_match('/(lower-roman|upper-roman|lower-latin|lower-alpha|upper-latin|upper-alpha|none|decimal|disc|circle|square|arabic-indic|bengali|devanagari|gujarati|gurmukhi|kannada|malayalam|oriya|persian|tamil|telugu|thai|urdu|cambodian|khmer|lao)/i',$v,$m) | ||
703 | || preg_match('/U\+([a-fA-F0-9]+)/i',$v,$m)) { | ||
704 | $newprop['LIST-STYLE-TYPE'] = strtolower(trim($m[1])); | ||
705 | } | ||
706 | } | ||
707 | |||
702 | 708 | ||
703 | else { | 709 | else { |
704 | $newprop[$k] = $v; | 710 | $newprop[$k] = $v; |