Lines 1313-1329
sub buildQuery {
Link Here
|
1313 |
if ( @limits ) { |
1313 |
if ( @limits ) { |
1314 |
$q .= ' and '.join(' and ', @limits); |
1314 |
$q .= ' and '.join(' and ', @limits); |
1315 |
} |
1315 |
} |
1316 |
return ( undef, $q, $q, "q=ccl=".uri_escape($q), $q, '', '', '', '', 'ccl' ); |
1316 |
return ( undef, $q, $q, "q=ccl=".uri_escape_utf8($q), $q, '', '', '', '', 'ccl' ); |
1317 |
} |
1317 |
} |
1318 |
if ( $query =~ /^cql=/ ) { |
1318 |
if ( $query =~ /^cql=/ ) { |
1319 |
return ( undef, $', $', "q=cql=".uri_escape($'), $', '', '', '', '', 'cql' ); |
1319 |
return ( undef, $', $', "q=cql=".uri_escape_utf8($'), $', '', '', '', '', 'cql' ); |
1320 |
} |
1320 |
} |
1321 |
if ( $query =~ /^pqf=/ ) { |
1321 |
if ( $query =~ /^pqf=/ ) { |
1322 |
if ($query_desc) { |
1322 |
if ($query_desc) { |
1323 |
$query_cgi = "q=".uri_escape($query_desc); |
1323 |
$query_cgi = "q=".uri_escape_utf8($query_desc); |
1324 |
} else { |
1324 |
} else { |
1325 |
$query_desc = $'; |
1325 |
$query_desc = $'; |
1326 |
$query_cgi = "q=pqf=".uri_escape($'); |
1326 |
$query_cgi = "q=pqf=".uri_escape_utf8($'); |
1327 |
} |
1327 |
} |
1328 |
return ( undef, $', $', $query_cgi, $query_desc, '', '', '', '', 'pqf' ); |
1328 |
return ( undef, $', $', $query_cgi, $query_desc, '', '', '', '', 'pqf' ); |
1329 |
} |
1329 |
} |
Lines 1495-1503
sub buildQuery {
Link Here
|
1495 |
$query .= " $operators[$i-1] "; |
1495 |
$query .= " $operators[$i-1] "; |
1496 |
$query .= " $index_plus " unless $indexes_set; |
1496 |
$query .= " $index_plus " unless $indexes_set; |
1497 |
$query .= " $operand"; |
1497 |
$query .= " $operand"; |
1498 |
$query_cgi .= "&op=".uri_escape($operators[$i-1]); |
1498 |
$query_cgi .= "&op=".uri_escape_utf8($operators[$i-1]); |
1499 |
$query_cgi .= "&idx=".uri_escape($index) if $index; |
1499 |
$query_cgi .= "&idx=".uri_escape_utf8($index) if $index; |
1500 |
$query_cgi .= "&q=".uri_escape($operands[$i]) if $operands[$i]; |
1500 |
$query_cgi .= "&q=".uri_escape_utf8($operands[$i]) if $operands[$i]; |
1501 |
$query_desc .= |
1501 |
$query_desc .= |
1502 |
" $operators[$i-1] $index_plus $operands[$i]"; |
1502 |
" $operators[$i-1] $index_plus $operands[$i]"; |
1503 |
} |
1503 |
} |
Lines 1507-1514
sub buildQuery {
Link Here
|
1507 |
$query .= " and "; |
1507 |
$query .= " and "; |
1508 |
$query .= "$index_plus " unless $indexes_set; |
1508 |
$query .= "$index_plus " unless $indexes_set; |
1509 |
$query .= "$operand"; |
1509 |
$query .= "$operand"; |
1510 |
$query_cgi .= "&op=and&idx=".uri_escape($index) if $index; |
1510 |
$query_cgi .= "&op=and&idx=".uri_escape_utf8($index) if $index; |
1511 |
$query_cgi .= "&q=".uri_escape($operands[$i]) if $operands[$i]; |
1511 |
$query_cgi .= "&q=".uri_escape_utf8($operands[$i]) if $operands[$i]; |
1512 |
$query_desc .= " and $index_plus $operands[$i]"; |
1512 |
$query_desc .= " and $index_plus $operands[$i]"; |
1513 |
} |
1513 |
} |
1514 |
} |
1514 |
} |
Lines 1520-1527
sub buildQuery {
Link Here
|
1520 |
$query .= " $index_plus " unless $indexes_set; |
1520 |
$query .= " $index_plus " unless $indexes_set; |
1521 |
$query .= $operand; |
1521 |
$query .= $operand; |
1522 |
$query_desc .= " $index_plus $operands[$i]"; |
1522 |
$query_desc .= " $index_plus $operands[$i]"; |
1523 |
$query_cgi .= "&idx=".uri_escape($index) if $index; |
1523 |
$query_cgi .= "&idx=".uri_escape_utf8($index) if $index; |
1524 |
$query_cgi .= "&q=".uri_escape($operands[$i]) if $operands[$i]; |
1524 |
$query_cgi .= "&q=".uri_escape_utf8($operands[$i]) if $operands[$i]; |
1525 |
$previous_operand = 1; |
1525 |
$previous_operand = 1; |
1526 |
} |
1526 |
} |
1527 |
} #/if $operands |
1527 |
} #/if $operands |