summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/config.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index aae8a29..8692cf4 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -236,8 +236,8 @@ argument and various information about it in the environment:
236* ``SP_CURRENT_FILE``: the current file being executed 236* ``SP_CURRENT_FILE``: the current file being executed
237 237
238This feature can be used, for example, to check if an uploaded file contains php 238This feature can be used, for example, to check if an uploaded file contains php
239code, with something like `vld <https://derickrethans.nl/projects.html#vld>`_ 239code, using `vld <https://derickrethans.nl/projects.html#vld>`_,
240(``php -d vld.execute=0 -d vld.active=1 -d extension=vld.so yourfile.php``). 240via `this script <https://github.com/nbs-system/snuffleupagus/tree/master/scripts/upload_validation.py>`__.
241 241
242The upload will be **allowed** if the script returns the value ``0``. Every other 242The upload will be **allowed** if the script returns the value ``0``. Every other
243value will prevent the file from being uploaded. 243value will prevent the file from being uploaded.