Bugzilla – Attachment 104432 Details for
Bug 25279
Make the cities list use the API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25279: HTML escape cells
Bug-25279-HTML-escape-cells.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2020-05-06 14:13:03 UTC
(
hide
)
Description:
Bug 25279: HTML escape cells
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-06 14:13:03 UTC
Size:
1.49 KB
patch
obsolete
>From 9c6ea2384e97a142ed3830813aba9e30975a0669 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 5 May 2020 20:28:10 -0300 >Subject: [PATCH] Bug 25279: HTML escape cells > >This patch makes HTML entities be escaped. It is done in a simple way. >We need to explore ways to do it at datatables.js level but it deserves >its own bug. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >index 445d839e59..f25a6e8fd0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >@@ -183,6 +183,15 @@ > }, > 'dom': 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', > "order": [[ 1, "asc" ]], >+ "columnDefs": [ { >+ "targets": [0,1,2,3,4], >+ "render": function (data, type, row, meta) { >+ if ( type == 'display' ) { >+ return $('<div />').text(data).html(); >+ } >+ return data; >+ } >+ } ], > "columns": [ > { > "data": "city_id", >-- >2.20.1
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 25279
:
103693
|
103694
|
103802
|
103803
|
103804
|
104065
|
104072
|
104359
|
104387
|
104416
|
104417
|
104420
|
104421
|
104423
|
104427
|
104428
|
104429
|
104430
|
104431
| 104432 |
104433
|
104434
|
104435
|
104510