aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/mpdf/classes/cssmgr.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/3rdparty/libraries/mpdf/classes/cssmgr.php')
-rw-r--r--inc/3rdparty/libraries/mpdf/classes/cssmgr.php10
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;