From bugzilla-daemon@bugs.koha-community.org Fri Feb 2 17:06:02 2024
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 5920] Remove HTML from downloaded reports
Date: Fri, 02 Feb 2024 16:06:00 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4371600223851361849=="
--===============4371600223851361849==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D5920
--- Comment #16 from Andrew Fuerste-Henry ---
Martin, can you please provide a test plan? What I've tried doesn't seem to
work, but perhaps I'm misunderstanding your intent.
Here's what I did:
- apply patch
- cpan HTML:Restrict
- restart_all
- create a new report from SQL:
"select concat('','Hello world','
') as message"
- run report
- click Download, select CSV format
- open csv in text editor
I expected my CSV to contain "Hello world" without the tags, but I got:
message
"Hello world
"
I also tried:
SELECT
biblionumber,=20
CONCAT('=
',title,'')
AS Title=20
from biblio
and ended up with a csv containing:
biblionumber,Title
12484,"T=
he
mask"
--=20
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
--===============4371600223851361849==--