mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
mail/snappymail: Fix error while accessing admin page
On a fresh installation, the admin page returns a 500 error, indicating a web server error. The logs reveal what the problem is, which is already fixed in upstream [1], but until a new version of snappymail is released, the user will see the following error: ``` RainLoop\Config\Application::SetPassword(): Argument #1 ($oPassword) must be of type SnappyMail\SensitiveString, string given, called in /usr/local/www/snappymail/snapp ymail/v/2.35.2/app/libraries/RainLoop/Actions.php on line 672 ``` Reference: https://github.com/the-djmaze/snappymail/issues/1472 [1] PR: 277571 MFH: 2024Q1
This commit is contained in:
parent
44b591df85
commit
396010cb58
@ -1,6 +1,6 @@
|
||||
PORTNAME= snappymail
|
||||
DISTVERSION= 2.35.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= mail www
|
||||
MASTER_SITES= https://github.com/the-djmaze/snappymail/releases/download/v${DISTVERSION}/
|
||||
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- snappymail/v/2.35.2/app/libraries/RainLoop/Actions.php.orig 2024-03-08 05:14:45 UTC
|
||||
+++ snappymail/v/2.35.2/app/libraries/RainLoop/Actions.php
|
||||
@@ -668,7 +668,7 @@ class Actions
|
||||
$sPassword = \substr(\base64_encode(\random_bytes(16)), 0, 12);
|
||||
Utils::saveFile($passfile, $sPassword . "\n");
|
||||
// \chmod($passfile, 0600);
|
||||
- $oConfig->SetPassword($sPassword);
|
||||
+ $oConfig->SetPassword(new \SnappyMail\SensitiveString($sPassword));
|
||||
$oConfig->Save();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user