Bugzilla – Attachment 40009 Details for
Bug 14360
XSS Injection point
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14360: Unescaped variable causes alert pop-up
Bug-14360-Unescaped-variable-causes-alert-pop-up.patch (text/plain), 1.98 KB, created by
Aleisha Amohia
on 2015-06-09 04:25:04 UTC
(
hide
)
Description:
Bug 14360: Unescaped variable causes alert pop-up
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2015-06-09 04:25:04 UTC
Size:
1.98 KB
patch
obsolete
>From f857cc1e31c38cb374edc8cfe80805c9e40577fa Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Tue, 9 Jun 2015 02:02:55 +0000 >Subject: [PATCH] Bug 14360: Unescaped variable causes alert pop-up > >To test: > >1) Create a list in the OPAC, name it: <script>alert('Hello');</script> >2) Delete the list >3) Confirm deletion >4) See the alert say 'Hello' >5) Apply patch >6) Recreate list with same name >7) Delete list >8) Confirm deletion and alert no longer pops up >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index da28e97..d2e4fd0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -130,10 +130,10 @@ > <div class="alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div> > [% END %] > [% IF ( paramsloo.delete_ok ) %] >- <div class="alert alert-info">List [% paramsloo.delete_ok %] Deleted.</div> >+ <div class="alert alert-info">List [% paramsloo.delete_ok |html %] Deleted.</div> > [% END %] > [% IF ( paramsloo.delete_fail ) %] >- <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div> >+ <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail |html %]) failed.</div> > [% END %] > [% IF ( paramsloo.unrecognized ) %] > <div class="alert alert-info">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div> >-- >1.7.10.4
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 14360
:
39981
|
40009
|
40045
|
40046
|
40066
|
40067