using vBulletin version 3.8.1.
We have some users using IE and Firefox who get this security token error when trying to upload images. Our footer has the code below in it. <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="s" value="$session[sessionhash]" /> Thank you for any help |
Quote:
|
So for a member uploading pics to a post, where in the template code would I add the new code?
Where is the form for uploading pics? Thanks |
For those wondering how to do this in vB4, if you have not done so already, in every form youy have within your home-made mods, where before you would have placed:
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> Code:
<input type="hidden" name="s" value="{vb:raw session[sessionhash]}" /><input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo[securitytoken]}" /> Cheers. Peter |
Quote:
Thanks for that, so are you saying delete Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> Code:
<input type="hidden" name="s" value="{vb:raw session[sessionhash]}" /><input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo[securitytoken]}" /> |
Hi,
When attempting to upload a pdf file, I get the missing security token error message. When I tried a different file type (png), I didn't receive the error. I've checked the attachment related templates and the codes mentioned are there. Any ideas? Thank you! Ken Disregard this. The problem is that the pdf file too large. Right now my server has an upload limit in the php.ini of 24MB. The file I was going to upload is about 32MB... |
I realize this is an old issue, but how do you add CSRF support to pages that are not posted, but the page decides what to display based on a url parameter?
For example, this works 'thesecool.php?do=apples' (using 'do'). But, 'thesecool.php?s=apples' will do an auto-logout and force the user back to the login screen. However, if I change it to 'thesecool.php?s=apples&do=apples' (trying to get the 'do' back) - that still doesn't work even though the 'do' parameter is there - and it does an auto-logout and forces the user back to the login screen. So with a 'post' without a <form> to pass variables...but you're passing url parameters...how do you add the security token? EDIT: Apparently, using 's' as a parameter is a bad thing. I changed my 's' (just arbitrarily used it, could have been anything) to a 'do' and everything works. Not sure why 's' would be an issue. Very strange. I should mention that I've used 'b', 'd', 'y', 'm', etc. without problems on other pages; doesn't make sense to me. |
Quote:
vB3: PHP Code:
PHP Code:
|
im getting the security token errors on 3.8.7
running The query shows most templates all of a sudden need editing BUT when I check them they all have the required code Im lost error im getting is Code:
Script Call Backtrace |
Quote:
Thank You! I was getting the Security Token error in the NavBar Search and Quicklinks/Mark Forums Read. I opened my Header Template, found the "Value="$session[sessionhash]" within the 'NavBar Popup Menus' section and added the security token code you quoted. Search function fixed. Quicklinks/Mark Forums read still generating a security token issue. Suggestions? |
All times are GMT. The time now is 02:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|