User tests: Successful: Unsuccessful:
Make sure that we always use a sessiontoken
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content com_fields com_languages com_users |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-21 12:04:22 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Nice to have form token check for AJAX reordering too
But can i ask
if the token is really needed to be added in the URLs ?
it seems to me that the token is already there
The reordering JS will post the full form and the token is already included
in the form of all of the 5 modified template files by this PR
<?php echo HTMLHelper::_('form.token'); ?>
if we want to have the token check to be activated
then we would only need to add missing check at the corresponding controller task, right ?
or am i missing something here ?
The token is in the HTML form element. Idea the AJAX submission isn’t
submitting the full form then there will be no token. Likewise, I guess
it’s possible the JS handing that action grabs the token from the form.
Long and short, just looking at this PR you have an incomplete answer and
there are other places you should check as well.
On Tue, Aug 21, 2018 at 5:29 PM Georgios Papadakis notifications@github.com
wrote:
Nice to have form token check for AJAX reordering too
But can i ask
if the token is really needed to be added in the URLs ?it seems to me that the token is already there
The reordering JS will post the full form and the token is already included
in the form of all of the 5 modified template files by this PRif we want to have the token check to be activated
then we would only need to add missing check at the corresponding
controller task, right ?or am i missing something here ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#21792 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoaBKKK_eXsoERjUeqd5a6KjzKbUfks5uTImwgaJpZM4WFjpg
.
--
Long and short, just looking at this PR you have an incomplete answer and there are other places you should check as well.
yes, will test tomorrow
the bonus is,
that if the token is already in the ajax save order request as i suspect,
and we only need to update the controller task
then this change to the controller task,
will not require 3rd party extensions to change anything for J4
(99% of their forms already included the token)
Nice one - thanks!