[Koha-bugs] [Bug 21887] 856$u link problem in XSLT result lists and detail page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 3 00:16:39 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21887

--- Comment #8 from David Cook <dcook at prosentient.com.au> ---
(In reply to Devinim from comment #7)
> Hi David,
> Can you share a sample for malformed but functional URL?
> Thanks.

Sure, I was thinking something like
"koha-community.org?redirect=http://other-site.org"

That string would not be caught by this test:

<xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">

Apologies for my wording of "malformed but functional URL". What I meant was a
a URL missing a scheme but containing an unencoded URL in the query string.
Technically, the value of redirect should be encoded, but browsers will
typically work with it anyway. If I put
"koha-community.org?redirect=http://other-site.org" into a Chrome browser,
it'll work. But according to your use case, it will try to connect to
localhost.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list