diff --git a/autodist b/autodist
index 767c757..1d0cff6 100755
--- a/autodist
+++ b/autodist
@@ -863,10 +863,12 @@ function launch_pkgs_loop() {
[ "$WEBBUILD_URL" -a "$WEBBUILD_USER" ] && {
SPEC_VERSION=`grep -m1 "^Version:" $spec_dir/$pkg.spec | sed "s|Version:[[:space:]]*||"`
if [ "$WEBBUILD_USER_CMDLINE" ]; then
- curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&SECRET=$WEBBUILD_SECRET&USER_EMAIL=$WEBBUILD_EMAIL&\
+ curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&\
+SECRET=`cgi_encodevar ${WEBBUILD_SECRET}`&USER_EMAIL=$WEBBUILD_EMAIL&\
MESSAGE=`cgi_encodevar \"(invoked by $WEBBUILD_USER_CMDLINE) sent $pkg $SPEC_VERSION-$SPEC_RELEASE for ${TARGETARCH} to $SEND_SERVER\"`" >/dev/null
else
- curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&SECRET=$WEBBUILD_SECRET&USER_EMAIL=$WEBBUILD_EMAIL&\
+ curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&\
+SECRET=`cgi_encodevar ${WEBBUILD_SECRET}`&USER_EMAIL=$WEBBUILD_EMAIL&\
MESSAGE=`cgi_encodevar \"sent $pkg $SPEC_VERSION-$SPEC_RELEASE for ${TARGETARCH} to $SEND_SERVER\"`" >/dev/null
fi
}