![]() |
Why doesn't the GPC resolve "do" anymore for HTML form links in 3.7?
I tried asking this question in the 3.7 troubleshooting section and was shot down for asking a programming question. Is this a bug or is this a new design feature for 3.7?
We use "do" in links in HTML forms on our site. This used to be able to be pulled via the GPC class in 3.6.8 and prior, in 3.7 it does not work: Sample HTML: Code:
<?php Code:
<form action="testsubmit.php?myaction=myactionval&do=testdoval" method="post"> |
What release candidate are you running?
Also, what is the output of your echo statements? This could possible be the result of the CSRF protocol... |
I'm running release candidate 4.
If I submit the form by clicking the button I get (click on picture to make them readable): https://vborg.vbsupport.ru/external/2008/04/10.jpg If I copy the link from the above submitted form into another IE window and just hit "go" I get: https://vborg.vbsupport.ru/external/2008/04/11.jpg That's why it appears to be just the "do" variable and only if that variable is passed via an html form. Scuzzy |
Add this to the debug:
var_dump($vbulletin->GPC); |
Submitted:
https://vborg.vbsupport.ru/external/2008/04/6.jpg Cutting and pasting link into another window and hitting "go": https://vborg.vbsupport.ru/external/2008/04/7.jpg "do" doesn't appear in the array in the submitted form, but "myaction" does... Scuzzy --------------- Added [DATE]1209461230[/DATE] at [TIME]1209461230[/TIME] --------------- I attempted to add the CSRF protection to this form to see if that was the problem. New code: Code:
<?php New Template: Code:
<form action="testsubmit.php?myaction=myactionval&do=testdoval" method="post"> Before submit: https://vborg.vbsupport.ru/external/2008/04/8.jpg After submit: https://vborg.vbsupport.ru/external/2008/04/9.jpg Scuzzy |
PHP Code:
PHP Code:
|
Quote:
New Code: Code:
<?php https://vborg.vbsupport.ru/external/2008/04/4.jpg After submit: https://vborg.vbsupport.ru/external/2008/04/5.jpg What seems really odd to me is that myaction shows up as a post variable. |
I have discussed this issue with our developers and it seems that this might be due to a change made during the latest CSRF patch. We are now discussing how to prevent side effects like this.
Advice for now is to submit it as a hidden input variable and also send the sessionhash and securitytoken. |
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|