Bugzilla – Attachment 193666 Details for
Bug 40255
Allow custom debit descriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40255: Allow scrubbed HTML to be used
Bug-40255-Allow-scrubbed-HTML-to-be-used.patch (text/plain), 2.93 KB, created by
Lucas Gass (lukeg)
on 2026-02-23 17:54:44 UTC
(
hide
)
Description:
Bug 40255: Allow scrubbed HTML to be used
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-02-23 17:54:44 UTC
Size:
2.93 KB
patch
obsolete
>From dc9851cf348b3ed0ca3c3dbc25aa4a9f32b727b1 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 23 Feb 2026 17:51:49 +0000 >Subject: [PATCH] Bug 40255: Allow scrubbed HTML to be used > >--- > Koha/Account/Line.pm | 4 +++- > .../prog/en/modules/members/boraccount.tt | 12 +++++++++--- > 2 files changed, 12 insertions(+), 4 deletions(-) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index 2188fbf33d6..ec13c7dda13 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -30,6 +30,7 @@ use Koha::Exceptions::Account; > use Koha::Patron::Debarments; > use Koha::Notice::Templates; > use C4::Letters; >+use C4::Scrubber; > > use base qw(Koha::Object Koha::Object::Mixin::AdditionalFields); > >@@ -1134,7 +1135,8 @@ sub store { > ); > > if ( $letter && $letter->{content} ) { >- $self->description( $letter->{content} ); >+ my $scrubber = C4::Scrubber->new('note'); >+ $self->description( $scrubber->scrub( $letter->{content} ) ); > } > } > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index 6db3bb56424..10b936fbe14 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -111,9 +111,15 @@ > <td>[% PROCESS account_type_description account=account %]</td> > <td> > [%- IF account.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %] >- [%- IF account.description %][% account.description | html %][% END %] >- [% IF ( account.itemnumber ) %] >- <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a> >+ [%- IF account.description %] >+ [% # Passing the raw filter here because this content is scrubbed %] >+ [% account.description | $raw %] >+ [% END %] >+ [% IF ( account.itemnumber ) %] >+ <span class="title"> >+ >+ <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a> >+ </span> > [% END %]</td > > > <td >-- >2.39.5
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 40255
:
188174
|
188176
|
188177
|
188178
|
188179
|
188180
|
188181
|
189641
|
189807
|
189808
|
189809
|
189810
|
193655
| 193666