public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 97026405cccf52990c481a3126820b3cc9db1c25
@ 2025-11-04 17:21 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2025-11-04 17:21 UTC (permalink / raw)
  To: ipfire-scm

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  97026405cccf52990c481a3126820b3cc9db1c25 (commit)
      from  90142d811f4502827b5251047583f4f2485d3c9c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 97026405cccf52990c481a3126820b3cc9db1c25
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Mon Nov 3 18:11:14 2025 +0100

    mail.cgi: Fix splitting the authentication line
    
    We only want to split once to avoid breaking when passwords contain
    special characters.
    
    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 html/cgi-bin/mail.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Difference in files:
diff --git a/html/cgi-bin/mail.cgi b/html/cgi-bin/mail.cgi
index 6c024974d..8094207d8 100644
--- a/html/cgi-bin/mail.cgi
+++ b/html/cgi-bin/mail.cgi
@@ -68,8 +68,8 @@ if (exists $dma{'AUTHPATH'}){
 	foreach my $line (<FILE>) {
 		$authline = $line;
 	}
-	my @part1 = split(/\|/,$authline);
-	my @part2 = split(/\:/,$part1[1]);
+	my @part1 = split(/\|/,$authline, 2);
+	my @part2 = split(/\:/,$part1[1], 2);
 	$auth{'AUTHNAME'} = $part1[0];
 	$auth{'AUTHHOST'} = $part2[0];
 	$auth{'AUTHPASS'} = $part2[1];


hooks/post-receive
--
IPFire 2.x development tree


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-04 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 17:21 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 97026405cccf52990c481a3126820b3cc9db1c25 Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox