summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJakub Onderka2021-11-22 17:42:45 +0100
committerGitHub2021-11-22 17:42:45 +0100
commit4a8e94f8624f187e71878cafa97a6d950c750e10 (patch)
tree5fe6267cbc9f175c6c57379fb69cdc43f40a18ae /doc
parent5f91b5a67fd57978ad1dcb7c9dfc84b038ff95ce (diff)
docs fix: path in filename() must be absolute (#404)
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 84e3fa9..c01377c 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -269,8 +269,8 @@ allow this to be prevented.
269:: 269::
270 270
271 # Allow `id.php` to restrict system() calls to `id` 271 # Allow `id.php` to restrict system() calls to `id`
272 sp.disable_function.function("system").filename("id.php").param("cmd").value("id").allow(); 272 sp.disable_function.function("system").filename("/var/www/html/id.php").param("cmd").value("id").allow();
273 sp.disable_function.function("system").filename("id.php").drop() 273 sp.disable_function.function("system").filename("/var/www/html/id.php").drop()
274 274
275Of course, this is a trivial example, a lot can be achieved with this feature, as you will see below. 275Of course, this is a trivial example, a lot can be achieved with this feature, as you will see below.
276 276