Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use query_string_expected_args_only_table? #51

Open
ghost opened this issue Jul 28, 2020 · 0 comments
Open

How to use query_string_expected_args_only_table? #51

ghost opened this issue Jul 28, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2020

Hello,

my site has a URL style like this for the search function: http://localhost/search/?pa=myquery&might=myselectedcategory
Basically these are the only two parameters I have how can I make the script filter anything else except of these two parameters?

currently my config looks like this:

 local query_string_expected_args_only_table = {

	{
		".*", --any site
		{ --query strings to allow ONLY all others apart from those you list here will be removed from the URL
			"pa",
			"might",
		},
	},

which does not not seem to do the trick if I just want pa and might to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
0 participants