We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If have something like:
$query = 'tags = ' . $filter;
The filter need to be escaped. Normally I would expect something like:
$query = 'tags = ' . addslashes($filter);
but that is not true was && is used. So it need to be also added to escaping. I currently did go with:
&&
$query = 'tags = "' . addcslashes($filter, '"&') . '"';
$filter = "The 17\" O'Conner && O`Series \n OR a || 1%2 book?";
Provide a Helper Class / Function which provides correct escaping for typesense query builder.
$query = 'tags = ' . Helper::escape(addcslashes($filter, '"&'));
No documentation or helper method currently provided what need to be escaped and what not.
Typesense Version:
OS:
The text was updated successfully, but these errors were encountered:
I am struggling with tag handling also
surprisingly difficult unhandled use case
Sorry, something went wrong.
No branches or pull requests
Description
If have something like:
The filter need to be escaped. Normally I would expect something like:
but that is not true was
&&
is used. So it need to be also added to escaping. I currently did go with:Steps to reproduce
Expected Behavior
Provide a Helper Class / Function which provides correct escaping for typesense query builder.
Actual Behavior
No documentation or helper method currently provided what need to be escaped and what not.
Metadata
Typesense Version:
OS:
The text was updated successfully, but these errors were encountered: