• web/lib/forum.js

    From Rob Swindell@1:103/705 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-8Some 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-8characters (e.g. "Björn Felte") - so convert these fields (to/from)to UTF-8, as needed. Uses the new(ish) utf8_encode() function, so youmust have a recent v3.17c build.I did not transcode message subjects as I'm not clear how they are storedand copied here. That's probably something better handled by echicken.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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 selfWhen posting a reply-message, if the original "from" field is thecurrent user's alias, then reply to the original message's "to"value instead of the "from" value. This is also how sbbs handlesreply 'to' fields.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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 usein the mail and forum pages.If modopts -> [web] -> forum_no_spam, then filter spam messagesin the forum. (Maybe make this more advanced in the future sousers can see these messages if they want to.)
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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 subsDon't display the name of messages posted with the anonymous attributeand force messages posted to anonymous-only subs as anonymous.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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 definedwhen attempting to post a poll. --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)