// Fix PDF generation on some hostings

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17356 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-13 16:22:57 +00:00
parent ba5538a12e
commit c77fddce5d
+2 -1
View File
@@ -23720,6 +23720,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
if (preg_match('%^/{2}%', $tag['attribute']['src'])) {
$tag['attribute']['src'] = 'http:'.$tag['attribute']['src'];
}
/* PrestaShop
// replace relative path with real server path
if (($tag['attribute']['src'][0] == '/') AND !empty($_SERVER['DOCUMENT_ROOT']) AND ($_SERVER['DOCUMENT_ROOT'] != '/')) {
$findroot = strpos($tag['attribute']['src'], $_SERVER['DOCUMENT_ROOT']);
@@ -23730,7 +23731,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
$tag['attribute']['src'] = $_SERVER['DOCUMENT_ROOT'].$tag['attribute']['src'];
}
}
}
}*/
$tag['attribute']['src'] = htmlspecialchars_decode(urldecode($tag['attribute']['src']));
$type = $this->getImageFileType($tag['attribute']['src']);
$testscrtype = @parse_url($tag['attribute']['src']);