We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a798171 commit 6253adaCopy full SHA for 6253ada
src/PhpWord/Shared/Html.php
@@ -34,6 +34,8 @@ class Html
34
* Add HTML parts.
35
*
36
* Note: $stylesheet parameter is removed to avoid PHPMD error for unused parameter
37
+ * Warning: Do not pass user-generated HTML here, as that would allow an attacker to read arbitrary
38
+ * files or perform server-side request forgery by passing local file paths or URLs in <img>.
39
40
* @param \PhpOffice\PhpWord\Element\AbstractContainer $element Where the parts need to be added
41
* @param string $html The code to parse
0 commit comments