Commit b782f989 authored by enured's avatar enured
Browse files

B13842 Fix for broken SIP in wkhtml and qfqpdf. Now correct string will be set...

B13842 Fix for broken SIP in wkhtml and qfqpdf. Now correct string will be set in cookie for wkhtml. For qfqpdf domain and its value with previous point is given to get the right cookie.
parent ccbda057
Pipeline #6905 passed with stage
in 2 minutes and 11 seconds
......@@ -71,10 +71,17 @@ class SessionCookie {
// $this->arrCookieString[] = "name:$key,value:$value,url:$domain,path:$path";
// qfqpdf seems to have problems if 'domain' is specified: it hangs by fetching the website. Skip domain.
$this->arrQfqPdfCookie[] = "name:$key,value:$value";
$this->arrQfqPdfCookie[] = "name:$key,value:$value,domain:.$domain";
}
$linesForWkhtml = '';
for($i = 0; $i < count($wkhtml); $i++){
$linesForWkhtml .= $wkhtml[$i]['name'] . "=".$wkhtml[$i]['value']. "; domain=".$wkhtml[$i]['url']."; "."path=".$wkhtml[$i]['path'].";";
if($i+1 < count($wkhtml)){
$linesForWkhtml .= "\n";
}
}
file_put_contents($this->pathFileNameCookie, json_encode(['cookies' => $wkhtml]), FILE_APPEND);
file_put_contents($this->pathFileNameCookie, $linesForWkhtml, FILE_APPEND);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment