]> git.koha-community.org Git - koha.git/commit
Bug 20218: Fix matching of uri in tracklinks
authorNick Clemens <nick@bywatersolutions.com>
Fri, 16 Feb 2018 12:31:39 +0000 (12:31 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 Mar 2018 11:29:51 +0000 (13:29 +0200)
commit7616fa9dcd310845d05f13c2f9847223e14b508f
treea30b5036826ad6f7bdda650ab6b90423a5b65b3b
parent338674817621f542ee122b8e6b7c2f374c50ce1d
Bug 20218: Fix matching of uri in tracklinks

The current code matches using a regex, this breaks when the url
contains special characters. We swtich it to equality check

To test:
1 - Enable TrackClicks (either track or anonymous)
2 - Find the URL of a biblio in the OPAC
3 - Paste this into the 856$u of another record
    (or use any url containing a '?' or other characters)
4 - View the record in the opac
5 - Click the URL
6 - 404 Error!
7 - Apply patch
8 - Try again
9 - Success!

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 306b461a6a8e57814367de524dfa3bd22c2f3eca)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/tracklinks.pl