Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions user_guide_src/source/libraries/images.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ The available Handlers are as follows:
On Windows, the ImageMagick handler requires **absolute file paths** when
loading images (for example, using ``WRITEPATH`` or ``FCPATH``).

.. warning::
Do not let user input directly decide the image source path, storage
directory, or filename. This includes values passed to methods like
``save()``, ``copy()`` and others, and any path or filename used to store
processed images. Use directories controlled by your application, and
generate filenames yourself or sanitize them with
:php:func:`sanitize_filename`.

*******************
Processing an Image
*******************
Expand Down