Skip to content
Snippets Groups Projects

Resolve "Increase readability of Proxy URLs"

Merged Dominik Hebeler requested to merge 22-increase-readability-of-proxy-urls into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -10,7 +10,7 @@ class HtmlDocument extends Document
private $htmlString;
private $encoding;
public function __construct($password, $baseUrl, $htmlString, $encoding)
public function __construct($password, $baseUrl, $htmlString, $encoding = null)
{
parent::__construct($password, $baseUrl);
$this->htmlString = $this->convertEncoding($htmlString, $encoding);
@@ -179,6 +179,9 @@ class HtmlDocument extends Document
# Convert all Links to the proxified Version
# All of this Links should NOT target to the top Level
$link->setAttribute("href", $this->proxifyUrl($link->getAttribute("href"), false));
// We will proxify any File that is linked here which changes its content
// Integrity will therefor fail and as we do not know the correct content yet it needs to be removed
$link->removeAttribute("integrity");
}
# All Iframes
Loading