[ZendTo] Two minor patches for NSSDropbox.php
Adam Thorn
alt36 at cam.ac.uk
Tue Jan 9 16:27:38 GMT 2024
I've atteched two patches for minor typos in NSSDropbox.php . Note I
haven't fully tested the impact of fixing these but I've applied them to
my live 6.13-3 ZendTo instance without problem. I've produced
patchefiles that apply to the 6.14-2 beta version.
(I spotted these typos because they were leading to "undefined
variable"-type warnings in my apache error log when an unauthenticated
user attempted to use a request code. Although I was investigating a
problem with using request codes, the problem turned out to be my zendto
config - but I started by investigating the php warnings!)
Regards,
Adam
-------------- next part --------------
--- ZendTo-6.14-2/lib/NSSDropbox.php 2023-08-25 15:38:30.000000000 +0100
+++ ZendTo-6.14-2-patched/lib/NSSDropbox.php 2024-01-09 16:17:22.683658532 +0000
@@ -2925,7 +2925,7 @@
if (!isset($passphrase)) {
$passphrase = '';
}
- $created = $recordList[0]['Created'];
+ $created = $recordlist[0]['Created'];
// Might be 0, so default to the starting time
if (!$created)
$created = $start;
-------------- next part --------------
--- ZendTo-6.14-2/lib/NSSDropbox.php 2023-08-25 15:38:30.000000000 +0100
+++ ZendTo-6.14-2-patched/lib/NSSDropbox.php 2024-01-09 16:19:46.840566609 +0000
@@ -2708,7 +2708,7 @@
$dcounter++;
}
// Have we got 10 yet, which is enough for 1 RE ?
- if ($size >= 10) {
+ if ($esize >= 10) {
$relist[] = $this->MakeEmailRE($emaillist);
$emaillist = array();
$esize = 0;
More information about the ZendTo
mailing list