http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9504

Liz Rea <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14921|0                           |1
        is obsolete|                            |

--- Comment #2 from Liz Rea <[email protected]> ---
Created attachment 15019
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15019&action=edit
Bug 9504: URL escape in OPAC more searches

OPACSearchForTitleIn is a syspref used to add links as "more searches" in OPAC
record detail page.
The links can contain vars depending on record values like title, ISBN, ...
Thoses values must be URL-escaped because they can contain special characters
that will brake URL and/or HTML.

This patch add a method C4::Output::parametrized_url() that replaces vars in
URL usign escape and UTF-8 encoding.

Test plan :
- Define in OPACSearchForTitleIn a link with all possible vars : TITLE, AUTHOR,
ISBN, ISSN, CONTROLNUMBER, BIBLIONUMBER
- Edit a record to add special characters in title : ", &, ? ...
- Go to OPAC detail pages of this record
=> Check that URL is well encoded
=> Click on link to check the term is well encoded (diacritical characters,
...)

Signed-off-by: Liz Rea <[email protected]>
Nice test plan, thanks!

Verified bug and fix - both look good.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/

Reply via email to