addImage docs: Warn about user-generated strings
This commit is contained in:
parent
bdca366d91
commit
a7981717b3
@ -234,7 +234,7 @@ To add an image, use the ``addImage`` method to sections, headers, footers, text
|
|||||||
|
|
||||||
$section->addImage($src, [$style]);
|
$section->addImage($src, [$style]);
|
||||||
|
|
||||||
- ``$src``. String path to a local image, URL of a remote image or the image data, as a string.
|
- ``$src``. String path to a local image, URL of a remote image or the image data, as a string. Warning: Do not pass user-generated strings here, as that would allow an attacker to read arbitrary files or perform server-side request forgery by passing file paths or URLs instead of image data.
|
||||||
- ``$style``. See :ref:`image-style`.
|
- ``$style``. See :ref:`image-style`.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user