We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640e6af commit d5fa606Copy full SHA for d5fa606
src/Resources/themes/default/doctum.js.twig
@@ -282,10 +282,13 @@ var Doctum = {
282
/**
283
* Clean the search query
284
*
285
- * @param string query
+ * @param string|null query
286
* @return string
287
*/
288
cleanSearchQuery: function (query) {
289
+ if (typeof query !== 'string') {
290
+ return '';
291
+ }
292
// replace any chars that could lead to injecting code in our regex
293
// remove start or end spaces
294
// replace backslashes by an escaped version, use case in search: \myRootFunction
0 commit comments