PDA

View Full Version : Custom File - Security Token Displayed Literally


MagicPID
12-25-2013, 08:47 PM
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

I have the above code in a template for my custom page which displays a form.
However, this is the result from my browser:
https://vborg.vbsupport.ru/external/2013/12/10.png

Unsurprisingly, I'm getting the usual CSRF protection error.

Due to this, I have to disable CSRF protection, which isn't what I'd like to do. Is there a way to resolve this?

Many thanks.

P.S: Merry Christmas!

kh99
12-25-2013, 09:05 PM
You need to change it to this:
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

MagicPID
12-27-2013, 05:09 PM
You need to change it to this:
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

This has solved my problem. Thank you.