# HG changeset patch # User Christophe Lincoln # Date 1487803696 -3600 # Node ID b964fe0ab82894b59aaba5c28e5a487d6ea51938 # Parent d98dc7dce8d423ea585e31b24bcb82074aa6323f mybugs plugin: fix if * is used in MSG diff -r d98dc7dce8d4 -r b964fe0ab828 web/plugins/mybugs/mybugs.cgi --- a/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:24:52 2017 +0100 +++ b/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:48:16 2017 +0100 @@ -42,10 +42,11 @@ do . ${msg} id=$(basename $(dirname $msg)) + msgid=$(echo $msg | cut -d "." -f 2) cat << EOT \ Bug $id: $DATE \ -$(echo $MSG | cut -c 1-40)... +$(echo "$MSG" | cut -c 1-40)... EOT done echo "" diff -r d98dc7dce8d4 -r b964fe0ab828 web/plugins/mybugs/user.sh --- a/web/plugins/mybugs/user.sh Wed Feb 22 23:24:52 2017 +0100 +++ b/web/plugins/mybugs/user.sh Wed Feb 22 23:48:16 2017 +0100 @@ -19,7 +19,7 @@ id=$(basename $(dirname $bug)) cat << EOT \ -Bug $id: $BUG - $DATE +Bug $id: $BUG - $DATE EOT done echo "" @@ -29,6 +29,7 @@ show_more="0" echo "

Latest debug messages

" echo "
"
+	
 	for msg in $(fgrep -l "USER=\"$user\"" ${bugdir}/*/*/msg.* | \
 		xargs ls -lt | awk '{print $9}' | head -n 4)
 	do
@@ -36,10 +37,11 @@
 		id=$(basename $(dirname $msg))
 		msgid=$(echo $msg | cut -d "." -f 2)
 		cat << EOT
- \
-Bug $id: $DATE \
-$(echo $MSG | cut -c 1-40)...
+ msg $msgid \
+Bug $id: $DATE \
+$(echo "$MSG" | cut -c 1-40)...
 EOT
+		unset USER DATE MSG
 	done
 	echo "
" fi