diff options
| author | jvoisin | 2018-02-12 11:59:51 +0100 |
|---|---|---|
| committer | jvoisin | 2018-02-12 11:59:51 +0100 |
| commit | 0c65426b8a5c369a43a34b92aec84834e3ab246b (patch) | |
| tree | 9c23d793c6f360655c3ab6354ccb28e9c50930ca /doc | |
| parent | bc0a4b26581ce72af7dd3dc070feaa05ddcf953d (diff) | |
Mention the script in the documentation
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/config.rst | 4 |
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 | ||
| 238 | This feature can be used, for example, to check if an uploaded file contains php | 238 | This feature can be used, for example, to check if an uploaded file contains php |
| 239 | code, with something like `vld <https://derickrethans.nl/projects.html#vld>`_ | 239 | code, using `vld <https://derickrethans.nl/projects.html#vld>`_, |
| 240 | (``php -d vld.execute=0 -d vld.active=1 -d extension=vld.so yourfile.php``). | 240 | via `this script <https://github.com/nbs-system/snuffleupagus/tree/master/scripts/upload_validation.py>`__. |
| 241 | 241 | ||
| 242 | The upload will be **allowed** if the script returns the value ``0``. Every other | 242 | The upload will be **allowed** if the script returns the value ``0``. Every other |
| 243 | value will prevent the file from being uploaded. | 243 | value will prevent the file from being uploaded. |
