From 80b85bf818a318caef2838665c3bc2cf6f3404a0 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Thu, 2 Mar 2023 16:24:17 +0000 Subject: [PATCH] [FIX] website, *: unescape URL parameters when used in autocomplete *: web_tour, website_blog Since [1] when the search box autocomplete was introduced, the URL parameters are implicitly included into the RPC that fetches the autocompletion results. Those parameters were not correctly unescaped before being sent to the RPC call. Because of this, a timestamp such as "2023-01-01 23:00:00" was sent as "2023-01-01+23%3A00%3A00" to the server. If that string reached the SQL layer, the "+" was interpreted as defining a timezone. This commit unescapes the URL parameters before using them in the RPC. Note that javascript's `decodeURIComponent` does not handle the '+' encoding of spaces inside URL parameters. For testing purpose, the following updates were needed to make it possible to select the `