@@ 12,7 12,7 @@ if [ -z "$user" ]; then
user="anon"
fi
-nstr=$(echo $QUERY_STRING | sed 's/%0A/ /g' | sed 's/%/\\x/g')
+nstr=$(echo $QUERY_STRING | sed 's/\(%0A\|
\)/ /g' | sed 's/%/\\x/g')
if [ -z $nstr]; then
echo -e "30 /\r\n"
@@ 20,7 20,7 @@ if [ -z $nstr]; then
fi
if [ $(cat last_message) != $nstr ]; then
- printf "($(date "+%D %R %Z"))\t\t$user: $nstr\n" >> message_log
+ printf "($(date "+%D %R %Z"))\t\t$user:\t$nstr\n" >> message_log
echo $nstr > last_message
else
echo -e "40 Message failed! Reason: Spam protection\r\n"