From e7f541396715ee2895abcf73044b91ae9b746201 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 20 Dec 2017 18:09:53 +0100 Subject: Better parsing of the rules Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.--- src/tests/config/disabled_function_local_var.ini | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/tests/config/disabled_function_local_var.ini') diff --git a/src/tests/config/disabled_function_local_var.ini b/src/tests/config/disabled_function_local_var.ini index cba2ae3..3d553c0 100644 --- a/src/tests/config/disabled_function_local_var.ini +++ b/src/tests/config/disabled_function_local_var.ini @@ -1,2 +1,10 @@ -sp.disable_function.function("phpinfo").var("b").value("1337").drop(); -sp.disable_function.function("strlen").var("a").value("1337").drop(); +sp.disable_function.function("phpinfo").var("$b").value("1337").drop(); +sp.disable_function.function("strlen").var("$a").value("1337").drop(); +sp.disable_function.function("strlen").var("$a['123']").value("block").drop(); +sp.disable_function.function("strlen").var("$a[$c]->prop").value("block").drop(); +sp.disable_function.function("strlen").var("$a->zxc").value("not a good value").drop(); +sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE['constant']").value("no good").drop(); +sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE").value("qwerty").drop(); +sp.disable_function.function("strlen").var("\\qwe\\ASD").value("qwerty").drop(); +sp.disable_function.function("strlen").var("\\qwe\\QWE['123']").value("asdfgh").drop(); +sp.disable_function.function("strlen").var("$qwe").value("block this").drop(); -- cgit v1.3