]> git.pld-linux.org Git - packages/php-mpdf.git/blame - backslash-fix.patch
- missing dir
[packages/php-mpdf.git] / backslash-fix.patch
CommitLineData
1c9d63c9
ER
1backslash fix
2
3https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/commit/ef508745a56a1923e4b1a52f50ab7f4e8d4020f9#mpdf/mpdf.php
4http://www.mpdf1.com/mpdf/forum/comments.php?DiscussionID=783
5https://gist.github.com/1594144
6
7--- MPDF53/mpdf.php 2012-02-11 13:11:47.046223430 +0200
8+++ mpdf/mpdf.php 2012-01-30 16:26:00.000000000 +0200
9@@ -32148,6 +32148,7 @@
10 $temp[2][$iterator] = preg_replace('/\t/',str_repeat(" ",$tabSpaces),$temp[2][$iterator]);
11
12 $temp[2][$iterator] = preg_replace('/\n/',"<br />",$temp[2][$iterator]);
13+ $temp[2][$iterator] = str_replace('\\',"\\\\",$temp[2][$iterator]);
14 $html = preg_replace('#<pre(.*?)>(.*?)</pre>#si','<erp'.$temp[1][$iterator].'>'.$temp[2][$iterator].'</erp>',$html,1);
15 $thereispre--;
16 $iterator++;
This page took 0.060904 seconds and 4 git commands to generate.