• web/lib/forum.js

    From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:17 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1036e892cbb1036ca99219fb
    Modified Files:
    web/lib/forum.js
    Log Message:
    Convert non-UTF-8 message header fields (to/from) to UTF-8

    Some messages come from non-English locales with non-UTF-8 charsets
    (e.g. CP437), so their to/from fields may contain non-ASCII/non-UTF-8 characters (e.g. "Björn Felte") - so convert these fields (to/from)
    to UTF-8, as needed. Uses the new(ish) utf8_encode() function, so you
    must have a recent v3.17c build.
    I did not transcode message subjects as I'm not clear how they are stored
    and copied here. That's probably something better handled by echicken.
  • From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/002a885ea108a39d0ab424ad
    Modified Files:
    web/lib/forum.js
    Log Message:
    Don't allow replying to one's self

    When posting a reply-message, if the original "from" field is the
    current user's alias, then reply to the original message's "to"
    value instead of the "from" value. This is also how sbbs handles
    reply 'to' fields.
  • From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1f9a87dc0b4b500e9526f84f
    Modified Files:
    web/lib/forum.js
    Log Message:
    Break out spam attribute/subject check into a function for use
    in the mail and forum pages.

    If modopts -> [web] -> forum_no_spam, then filter spam messages
    in the forum. (Maybe make this more advanced in the future so
    users can see these messages if they want to.)
  • From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/5b513b083031709cdd51a658
    Modified Files:
    web/lib/forum.js
    Log Message:
    Fix the display of anonymous messages and posting on anon-only subs

    Don't display the name of messages posted with the anonymous attribute
    and force messages posted to anonymous-only subs as anonymous.
  • From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/09eb5b83d2de260afeef21cc
    Modified Files:
    web/lib/forum.js
    Log Message:
    Poll subjects (questions) are UTF-8 encoded when posted from web
  • From Rob Swindell to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/a9d108da4c33a48b0d79b601
    Modified Files:
    web/lib/forum.js
    Log Message:
    Fix typo in my last commit to this file (from May 6)

    Fixes error: ReferenceError: MGS_HFIELDS_UTF8 is not defined
    when attempting to post a poll.