Bugzilla – Attachment 116966 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.53 KB, created by
Katrin Fischer
on 2021-02-17 20:19:52 UTC
(
hide
)
Description:
Bug 27694: use HTML filtering on News Tool textarea
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-02-17 20:19:52 UTC
Size:
1.53 KB
patch
obsolete
>From acd4cd38b16367a1abd7c738f2bb9f59d5a18dd2 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 > >Signed-off-by: Ron Houk <rhouk@ottumwapubliclibrary.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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