~ysu/gemini-chatroom

ref: a680799a0b1808899ff69d862b47e068068da2ea gemini-chatroom/bin/chat0/postuser -rwxr-xr-x 228 bytes
a680799a — vps changed message formatting 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/dash

if [ -z $QUERY_STRING ]; then
	echo "10 Username\r\n"
fi

if [ ${#QUERY_STRING} -gt 9 ]; then
	echo "40 Message failed! Reason: Username must be below 9 characters\r\n"
	exit 0
fi

echo "30 post/$QUERY_STRING\r\n"