https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39527

Magnus Enger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #180348|0                           |1
        is obsolete|                            |

--- Comment #2 from Magnus Enger <[email protected]> ---
Created attachment 180667
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180667&action=edit
Bug 39527: Add action attribute to letter.pl form

If not explicitly set, two 'op' parameters are sent, one with the value
in the URL (add_form), one with the value in the form
(cud-add_validate).
This causes an error in the CSRF validation code under Mojolicious
environment.

Test plan:
1. Start staff interface as mojolicious application:
   `bin/intranet daemon -l http://*:3000/`
2. Go to http://localhost:3000 (replace localhost by the hostname where
   koha is running), log in, then go to Tools ยป Notices and slips.
3. Create a new notice.
   Without the patch it fails with the following message:
    Incorrect use of an unsafe HTTP method with an `op` parameter that
    does not start with "cud-"
   With the patch it should succeed.

Signed-off-by: Magnus Enger <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to