Skip to content

Commit

Permalink
check for livesite prefix on css urls when brute forcing CSS load for…
Browse files Browse the repository at this point in the history
… PDF attach in email
  • Loading branch information
cheesegrits committed Mar 21, 2017
1 parent 976ce1a commit 79f4b3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/fabrik_form/email/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ protected function pdfAttachment(&$thisAttachments)

foreach ($document->_styleSheets as $url => $ss)
{
if (!strstr($url, COM_FABRIK_LIVESITE))
{
$url = COM_FABRIK_LIVESITE . $url;
}

$url = htmlspecialchars_decode($url);
$formCss[] = file_get_contents($url);
}
Expand Down

0 comments on commit 79f4b3d

Please sign in to comment.