Bugzilla – Attachment 116839 Details for
Bug 27694
News tool editor (codemirror) automatically converts HTML entities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27694: use HTML filtering on News Tool textarea
Bug-27694-use-HTML-filtering-on-News-Tool-textarea.patch (text/plain), 1.42 KB, created by
Lucas Gass (lukeg)
on 2021-02-12 16:01:48 UTC
(
hide
)
Description:
Bug 27694: use HTML filtering on News Tool textarea
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-02-12 16:01:48 UTC
Size:
1.42 KB
patch
obsolete
>From dd74d345f89e095fc584c9202ca9b62643bbcf7c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 12 Feb 2021 15:57:22 +0000 >Subject: [PATCH] Bug 27694: use HTML filtering on News Tool textarea > >To test: >1. Add some HTML enties to your codemirror in the News Tool. Example: <option value="(itype:DVD and loc:*NEW) AND NOT index-term-genre:"television"">Movies</option> >2. Save and re-eneter the tool, the HTML entites have been converted >3. Apply patch >4. Try again, HTML entities should not be converted >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >index cc96a5385e..238ab054c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >@@ -103,7 +103,7 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> > [% END %] > </li> > <li><label for="content">News: </label> >- <textarea name="content" id="content" cols="75" rows="10">[% new_detail.content | $raw %]</textarea> >+ <textarea name="content" id="content" cols="75" rows="10">[% new_detail.content | html %]</textarea> > </li> > </ol> > </fieldset> >-- >2.11.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 27694
:
116839
|
116926
|
116966