Escape the double quotes in authority search queries to prevent errors.
Before this fix, any search with double-quotes would return an error 500. Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
4d4e4abfae
commit
21993ab00a
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ sub SearchAuthorities {
|
||||||
} else {
|
} else {
|
||||||
$attr .=" \@attr 5=1 \@attr 4=6 ";## Word list, right truncated, anywhere
|
$attr .=" \@attr 5=1 \@attr 4=6 ";## Word list, right truncated, anywhere
|
||||||
}
|
}
|
||||||
|
@$value[$i] =~ s/"/\\"/g; # Escape the double-quotes in the search value
|
||||||
$attr =$attr."\"".@$value[$i]."\"";
|
$attr =$attr."\"".@$value[$i]."\"";
|
||||||
$q2 .=$attr;
|
$q2 .=$attr;
|
||||||
$dosearch=1;
|
$dosearch=1;
|
||||||
|
|
Loading…
Reference in a new issue