From 4a8e94f8624f187e71878cafa97a6d950c750e10 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 22 Nov 2021 17:42:45 +0100 Subject: docs fix: path in filename() must be absolute (#404) --- doc/source/config.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/source') 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. :: # Allow `id.php` to restrict system() calls to `id` - sp.disable_function.function("system").filename("id.php").param("cmd").value("id").allow(); - sp.disable_function.function("system").filename("id.php").drop() + sp.disable_function.function("system").filename("/var/www/html/id.php").param("cmd").value("id").allow(); + sp.disable_function.function("system").filename("/var/www/html/id.php").drop() Of course, this is a trivial example, a lot can be achieved with this feature, as you will see below. -- cgit v1.3