https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40717
Bug ID: 40717
Summary: Notes scrubber is too strict for some cases
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Bug 31165 added scrubbing to course reserves public note
Many libraries use the public note to link to courses on their website, other
resources, etc.
Additionally bug 33337 talks about scrubbing patron public notes, but those are
also used sometimes for links, such as other patrons that can check out their
items but not guarantaurs.
I recommend changing it to something like what Lucas did on Bug 38960
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183774&action=diff
which allows for some links but is not all links:
a => {
href => qr{^(?:https?://|/cgi-bin/|mailto:|#)}i,
class => qr/^[\w\s\-_]+$/,
title => 1,
target => qr/^_(?:blank|self|parent|top)$/,
rel =>
qr/^(?:nofollow|noopener|noreferrer|noindex|bookmark|tag|prev|next|up|alternate|author|help|license|search)$/,
property => qr/^[\w\s]+$/,
typeof => qr/^[\w\s]+$/,
resource => qr/^[#\w\-_]+$/,
},
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/