Bugzilla – Attachment 183536 Details for
Bug 40079
C4::Scrubber "note" profile should allow for list (ul, ol, li, dl, dt, and dd) HTML tags
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40079: (follow-up) Update unit test
Bug-40079-follow-up-Update-unit-test.patch (text/plain), 1.37 KB, created by
Martin Renvoize (ashimema)
on 2025-06-26 14:37:54 UTC
(
hide
)
Description:
Bug 40079: (follow-up) Update unit test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-06-26 14:37:54 UTC
Size:
1.37 KB
patch
obsolete
>From 29d44fb4d856e70f05aab036ff31b9b797991cfe Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >Date: Thu, 26 Jun 2025 15:18:03 +0100 >Subject: [PATCH] Bug 40079: (follow-up) Update unit test > >--- > t/Scrubber.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/Scrubber.t b/t/Scrubber.t >index 42c1a074fc1..bfae79df3b8 100755 >--- a/t/Scrubber.t >+++ b/t/Scrubber.t >@@ -84,9 +84,9 @@ if ($@) { > } > > my $scrub_text = >- '<div><span><p><b>bold</b><i>ital</i><em>emphatic</em><big>embiggen</big><small>shrink</small><strong>strongbad</strong><br><u>under</u><hr></p></span></div>'; >+ '<div><span><p><b>bold</b><i>ital</i><em>emphatic</em><big>embiggen</big><small>shrink</small><strong>strongbad</strong><br><u>under</u><hr><ol><li>ordered item</li></ol><ul><li>unordered item</li></ul><dl><dt>term</dt><dd>definition</dd></dl></p></span></div>'; > my $scrub_comment = >- '<b>bold</b><i>ital</i><em>emphatic</em><big>embiggen</big><small>shrink</small><strong>strongbad</strong><br>under'; >+ '<b>bold</b><i>ital</i><em>emphatic</em><big>embiggen</big><small>shrink</small><strong>strongbad</strong><br>underordered itemunordered itemtermdefinition'; > is( C4::Scrubber->new('comment')->scrub($scrub_text), $scrub_comment, "Comment scrubber removes expected elements" ); > is( > C4::Scrubber->new('note')->scrub($scrub_text), $scrub_text, >-- >2.49.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 40079
:
182985
|
183014
|
183534
|
183535
|
183536
|
183537
|
183583
|
183584
|
183585
|
183586