Skip to content

Commit

Permalink
Skip mailto: hrefs in fullPaths()
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Dec 15, 2017
1 parent 468dc3c commit 61e441e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/fabrik/fabrik/Helpers/Pdf.php
Expand Up @@ -103,7 +103,7 @@ public static function fullPaths(&$data)

foreach ($as as &$a)
{
if (!strstr($a['href'], $schemeString))
if (!strstr($a['href'], $schemeString) && !strstr($a['href'], 'mailto:'))
{
$base = empty($subdir) || strstr($a['href'], $subdir) ? $base_root : $base_root . $subdir;
$a['href'] = $base . ltrim($a['href'],'/');
Expand Down

0 comments on commit 61e441e

Please sign in to comment.