From 367e2f7dee435b06bdc2731a7aa1533ba871570f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 16 Nov 2014 16:08:06 +0100 Subject: [PATCH] webbuild-cgi: fix support for multiple words queries --- webbuild/webbuild-cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 98913d7..e2fb2f9 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -466,7 +466,8 @@ if [ "$REQUEST" = "repsearch" ]; then echo -n "Search results for \"$REPSEARCHTEXT\":
" # echo -n "
"
-   curl -s "${WEBBUILD_DISTROQUERY_URL}?query=$REPSEARCHTEXT&search_milestone2=true&search_devel=true\
+   REPSEARCHTEXT_FMT=`echo "${REPSEARCHTEXT}" | sed "s|[[:space:]]|+|g"`
+   curl -s "${WEBBUILD_DISTROQUERY_URL}?query=${REPSEARCHTEXT_FMT}&search_milestone2=true&search_devel=true\
 &search_i586=true&search_x86_64=true&search_arm=true&search_sources=true&query_compact=true&replyplain=true" | \
    sed "s| \(href=.\)/| \1${SITE_BASE_URL}/|g"
 #   $SUDO_WRAPPER 0 local "$USER" "" "autodist-repository search -i ${REPSEARCHTEXT/-/\-}" | \