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/-/\-}" | \