Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Have URI param() and query() methods been disabled? For security reasons?

Solved by Andy Miller View solution

Started by ian russell 3 weeks ago · 2 replies · 297 views
3 weeks ago

Our web pages link to one common form page by clicking a contact button. I have tried using URI param() and query() methods in the contact form page to transfer url data from the referring page.

Both methods appear to be disabled (although still described in the 1.7 documentation. Is this for security reasons?

Is there another way to add the referring page url to a hidden field in the contact form?

Thank you

Ian

3 weeks ago Solution

The question is how are you using URI param/query? do you mean you have twig in your page content? Twig is disabled by default in page content for security reasons, although it can be reenabled if you need to. But for the majority of people having Twig off by default is the safer bet.

3 weeks ago

Yes, I have twig in the page content. All working now. Many thanks, Andy.

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 2 weeks ago
2 216 1 week ago
General · by Andy Miller, 2 weeks ago
0 232 2 weeks ago
General · by Veehem, 2 weeks ago
0 219 2 weeks ago
General · by milkboy, 2 weeks ago
0 216 2 weeks ago
General · by pamtbaau, 2 months ago
2 550 4 weeks ago