diff --git a/autoport b/autoport
index 91582c3..9f240a0 100755
--- a/autoport
+++ b/autoport
@@ -700,10 +700,12 @@ for TARGET_ARCH in ${TARGET_ARCHS}; do
autoport_log ${JOB_CURRENT} port ok $tmpfile
if [ "$WEBBUILD_URL" -a "$WEBBUILD_USER" ]; then
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) ported $JOB_CURRENT to $TARGET_ARCH and sent it to $SEND_REPOSITORY\"`" >/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 \"ported $JOB_CURRENT to $TARGET_ARCH and sent it to $SEND_REPOSITORY\"`" >/dev/null
fi
fi