Subject: Possible bug with bbs.post_msg()
@VIA: DIGDIST
@MSGID: <4E8FF139.1151.sync_js@digitaldistortionbbs.com>
@TZ: c1e0
Hi DM -
I think I may have found a bug with the bbs object's post_msg() method. If pass in a reply header whose "from" property is a blank string, sbbsctrl wil crash. I found this in a script I have that lists messages in a sub-board a allows the user to select one to read and optionally reply to it. I'm using the daily build from September 20.
There's a message that was posted in the Synchronet Discussion sub on Dove-N today (October 7) that has a blank "from" name. My script gets a message header from MsgBase.get_msg_header(), and in this case, it's "from" name was blank; if I select to reply to the message, my script then passes that messa header object to bbs.post_msg() (as the 3rd parameter), and at that point, m sbbsctrl would crash. I tried it several times to verify the crash and was able to reproduce it each time.
My workaround was to make sure the "from" name in the header is set to something if it's blank - I set it to "All" in that case. Then, when I pass the header object to bbs.post_msg(), "All" becomes the default "To" name for my reply, and sbbsctrl doesn't crash.
Nightfox
Hi DM -
I think I may have found a bug with the bbs object's post_msg() method. If you pass in a reply header whose "from" property is a blank string,
sbbsctrl will crash. I found this in a script I have that lists messages
in a sub-board and allows the user to select one to read and optionally reply to it. I'm using the daily build from September 20.
There's a message that was posted in the Synchronet Discussion sub on Dove-Net today (October 7) that has a blank "from" name. My script gets a message header from MsgBase.get_msg_header(), and in this case, it's "from" name was blank; if I select to reply to the message, my script then passes that message header object to bbs.post_msg() (as the 3rd parameter), and at that point, my sbbsctrl would crash. I tried it several times to verify
the crash and was able to reproduce it each time.
My workaround was to make sure the "from" name in the header is set to something if it's blank - I set it to "All" in that case. Then, when I
pass the header object to bbs.post_msg(), "All" becomes the default "To" name for my reply, and sbbsctrl doesn't crash.
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 4 |
Nodes: | 10 (0 / 10) |
Uptime: | 140:27:49 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 49,859 |