tazbug diff web/plugins/mybugs/mybugs.cgi @ rev 145
mybugs plugin: fix if * is used in MSG
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 23:48:16 2017 +0100 (2017-02-22) |
parents | d98dc7dce8d4 |
children | fb5c47b8d6f5 |
line diff
1.1 --- a/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:24:52 2017 +0100 1.2 +++ b/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:48:16 2017 +0100 1.3 @@ -42,10 +42,11 @@ 1.4 do 1.5 . ${msg} 1.6 id=$(basename $(dirname $msg)) 1.7 + msgid=$(echo $msg | cut -d "." -f 2) 1.8 cat << EOT 1.9 <img src='images/bug.png' alt='' /> \ 1.10 <a href="?id=$id">Bug $id:</a> <span class="date">$DATE</span> \ 1.11 -<a href="?id=$id#msg${msgid}">$(echo $MSG | cut -c 1-40)...</a> 1.12 +<a href="?id=$id#msg${msgid}">$(echo "$MSG" | cut -c 1-40)...</a> 1.13 EOT 1.14 done 1.15 echo "</pre>"