Änderungen https Andy Müller rückgängig gemacht
This commit is contained in:
@ -1770,16 +1770,16 @@ class HTML2PDF_parsingCss
|
||||
// get the content of the css file
|
||||
$content = @file_get_contents($url);
|
||||
|
||||
// if "https://" in the url
|
||||
if (strpos($url, 'https://')!==false) {
|
||||
// if "http://" in the url
|
||||
if (strpos($url, 'http://')!==false) {
|
||||
|
||||
// get the domain "https://xxx/"
|
||||
$url = str_replace('https://', '', $url);
|
||||
// get the domain "http://xxx/"
|
||||
$url = str_replace('http://', '', $url);
|
||||
$url = explode('/', $url);
|
||||
$urlMain = 'https://'.$url[0].'/';
|
||||
$urlMain = 'http://'.$url[0].'/';
|
||||
|
||||
// get the absolute url of the path
|
||||
$urlSelf = $url; unset($urlSelf[count($urlSelf)-1]); $urlSelf = 'https://'.implode('/', $urlSelf).'/';
|
||||
$urlSelf = $url; unset($urlSelf[count($urlSelf)-1]); $urlSelf = 'http://'.implode('/', $urlSelf).'/';
|
||||
|
||||
// adapt the url in the css content
|
||||
$content = preg_replace('/url\(([^\\\\][^)]*)\)/isU', 'url('.$urlSelf.'$1)', $content);
|
||||
|
Reference in New Issue
Block a user