Backport of 10805 from trunk, but we leave backslash cleansing on the client
in rel_1_2 because backslashes reportedly cause problems with old-style JSON
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10806
dcc99617-32d9-48b4-a31d-
7c20da2025e4
my $orig_query = $query;
$query =~ s/\+/ /go;
- $query =~ s/'//go;
+ $query =~ s/'/ /go;
$query =~ s/^\s+//go;
# convert convenience classes (e.g. kw for keyword) to the full class name
if(!text || text == "") return;
- text = text.replace(/'/g,' ');
+ /* old JSON format breaks horribly if fed backslashes */
text = text.replace(/\\/g,' ');
- text = text.replace(/^\s*/,'');
- text = text.replace(/\s*$/,'');
var d = (newSearchDepth != null) ? newSearchDepth : depthSelGetDepth();
if(isNaN(d)) d = 0;