X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fform.php;h=ee97f7a32f571b52e0cf0e4ab79766a5763298bb;hb=5a2d7601770a13f8cdb31285f271397ecf675be1;hp=74737f6df5c12953dbc6f71f0bfd90358f499971;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/lib/form.php b/lib/form.php index 74737f6df5..ee97f7a32f 100644 --- a/lib/form.php +++ b/lib/form.php @@ -91,7 +91,9 @@ class Form extends Widget function sessionToken() { - $this->out->hidden('token', common_session_token()); + if (strtolower($this->method()) == 'post') { + $this->out->hidden('token-' . $this->id() ?: common_random_hexstr(3), common_session_token(), 'token'); + } } /**