We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3ab98 commit 2b0c3beCopy full SHA for 2b0c3be
1 file changed
user_guide_src/source/libraries/images.rst
@@ -42,6 +42,14 @@ The available Handlers are as follows:
42
On Windows, the ImageMagick handler requires **absolute file paths** when
43
loading images (for example, using ``WRITEPATH`` or ``FCPATH``).
44
45
+.. warning::
46
+ Do not let user input directly decide the image source path, storage
47
+ directory, or filename. This includes values passed to methods like
48
+ ``save()``, ``copy()`` and others, and any path or filename used to store
49
+ processed images. Use directories controlled by your application, and
50
+ generate filenames yourself or sanitize them with
51
+ :php:func:`sanitize_filename`.
52
+
53
*******************
54
Processing an Image
55
0 commit comments