summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjvoisin2018-02-12 11:59:51 +0100
committerjvoisin2018-02-12 11:59:51 +0100
commit0c65426b8a5c369a43a34b92aec84834e3ab246b (patch)
tree9c23d793c6f360655c3ab6354ccb28e9c50930ca /doc
parentbc0a4b26581ce72af7dd3dc070feaa05ddcf953d (diff)
Mention the script in the documentation
Diffstat (limited to 'doc')
-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.