https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21887 --- Comment #8 from David Cook <dcook@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.