🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #529

Re: fms not working?

#529
From: Retro Guy
Date: Thu, 25 May 2023 14:36
34 lines
3081 bytes
Anonymous wrote:

> It has happened again and I know what I did this time to cause it. I cleared my cookies and cache and restarted my browser and when I visited retrobbs.i2p again noscript is back to blocking Javascript.

> The problem seems to be the tzo cookie that is set through Javascript, if it's not set, then posts don't load at all for some reason. What's funny is that retrobbs seems to work fine without Javascript, it's just that one cookie that seems to make the difference of posts loading vs not loading. Javascript seems to be only required for setting it.

> I guess you could default the timezone offset to 0 if the cookie is not set?

Thank you for the thorough bug report! I was able to duplicate the problem here and have hopefully
fixed it. This seems maybe another change required for php8:

I have changed: 
if(isset($_COOKIE['tzo'])) {
    $offset=$_COOKIE['tzo'];
  } else {
    $offset=$CONFIG['timezone'];
  }

To:
if(isset($_COOKIE['tzo'])) {
    $offset=$_COOKIE['tzo'];
  } else {
    $offset=intval($CONFIG['timezone']);
  }

Seems once I changed to php8, it sees the zero in the CONFIG value as a bool false, not a zero. Strange thing is that of four different installs, all with fully updated Debian Bookworm and same rslight code, only retrobbs seems to exhibit that issue.


> PS: Would it also be possible to bump up the amount of requests before getting 429 Denied due to excessive requests? I seem to hit that limit far too easily..

Done.

-- 
Retro Guy
Technical Details
Message-ID: <b95119b606800be520e8724edc136069@rocksolidbbs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
References: <6c3bc9769bad7ea948e16225ddb003d2@rocksolidbbs.com> <8ae76fede8ce0f260fe9e79c24b3f14c@rocksolidbbs.com> <92abcd82d9f91448014d04e9816a20d9@rocksolidbbs.com> <b1fa1af5c5cef10cdaf4f95e0e12c0b3@rocksolidbbs.com> <a01312227aac4401cd0379e09056a786@rocksolidbbs.com> <c085bfb391c88b14ed335e56293684d4@news.novabbs.org> <7d5a254c90efd9efb0e8197f2f8a503a@news.novabbs.org>

Show Full Headers
Complete Article Headers
Message-ID: <b95119b606800be520e8724edc136069@rocksolidbbs.com>
Subject: Re: fms not working?
Date: Thu, 25 May 2023 14:36:17 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
References: <6c3bc9769bad7ea948e16225ddb003d2@rocksolidbbs.com> <8ae76fede8ce0f260fe9e79c24b3f14c@rocksolidbbs.com> <92abcd82d9f91448014d04e9816a20d9@rocksolidbbs.com> <b1fa1af5c5cef10cdaf4f95e0e12c0b3@rocksolidbbs.com> <a01312227aac4401cd0379e09056a786@rocksolidbbs.com> <c085bfb391c88b14ed335e56293684d4@news.novabbs.org> <7d5a254c90efd9efb0e8197f2f8a503a@news.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes
Organization: RetroBBS
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
 logging-data="1896926"; mail-complaints-to="usenet@i2pn2.org";
 posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.2
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
 ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
 H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$veQQICSxq1rnbstB5RU/luk5ZjUzKrIpLxobLDgrSfJuuf6nRQtNi
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org