]> _ Git - fluidbook_tools.git/commitdiff
wip #7871 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jan 2026 11:49:19 +0000 (12:49 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jan 2026 11:49:19 +0000 (12:49 +0100)
src/Links/PDFFormPopupLink.php

index 8412ef0d41fd041e7fb6aa100d95db1ee1b6a6d3..8053f50653f69adba0202f48a88701b49832f9e4 100644 (file)
@@ -4,6 +4,7 @@ namespace Fluidbook\Tools\Links;
 
 use Cubist\Util\Graphics\Image;
 use Cubist\PDF\PDFTools;
+use Cubist\Util\Text;
 
 class PDFFormPopupLink extends PDFPopupLink
 {
@@ -17,7 +18,7 @@ class PDFFormPopupLink extends PDFPopupLink
     protected function _getPDFInfos()
     {
         $res = parent::_getPDFInfos();
-        $res['recipient'] = $this->target;
+        $res['recipient'] = Text::isEmail($this->target) ? $this->target : '';
         $res['name'] = $this->name;
 
         return $res;