Bugzilla – Attachment 171470 Details for
Bug 37916
Plugin search and install regression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37916: Convert plugin install button to form
Bug-37916-Convert-plugin-install-button-to-form.patch (text/plain), 2.43 KB, created by
Paul Derscheid
on 2024-09-13 14:50:11 UTC
(
hide
)
Description:
Bug 37916: Convert plugin install button to form
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2024-09-13 14:50:11 UTC
Size:
2.43 KB
patch
obsolete
>From 0fed0f2ace5e31f8946a78c5a2f61c80ec8882d2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 13 Sep 2024 13:59:08 +0100 >Subject: [PATCH] Bug 37916: Convert plugin install button to form > >This patch takes the usual approach of converting linked buttons to form >with the csrf token included. > >Signed-off-by: JesseM <jesse@bywatersolutions.com> >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >--- > .../prog/en/modules/plugins/plugins-home.tt | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >index 1f09d11191..b8b7f764c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >@@ -102,7 +102,15 @@ > <td>[% sr.result.description | html %]</td> > <td>[% sr.repo.name | html %]</td> > <td>[% sr.result.tag_name | html %]</td> >- <td><a class="btn btn-default btn-sm btn-install-plugin" href="/cgi-bin/koha/plugins/plugins-upload.pl?op=Upload&uploadfile=[% sr.result.install_name | uri %]&uploadlocation=[% sr.result.install_url | uri %]"><i class="fa fa-download"></i> Install</a></td> >+ <td> >+ <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl"> >+ [% INCLUDE 'csrf-token.inc' %] >+ <input type="hidden" name="op" value="cud-Upload" /> >+ <input type="hidden" name="uploadfile" value="[% sr.result.install_name | html %]" /> >+ <input type="hidden" name="uploadlocation" value="[% sr.result.install_url | url %]" /> >+ <button type="submit" value="Install" class="btn btn-default btn-sm btn-install-plugin"><i class="fa fa-download"></i> Install</button> >+ </form> >+ </td> > </tr> > [% END %] > </table> >-- >2.46.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37916
:
171457
|
171462
| 171470 |
173589
|
173590
|
173591