use md5() instead of base64_encode for dummy-fpm-socket name to avoid possible equal-sign in string which leads to an invalid socket, fixes #513

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-07 15:10:59 +01:00
parent 0aa707ebc9
commit ec21e28000

View File

@@ -361,7 +361,7 @@ class phpinterface_fpm
$config = makeCorrectFile($configdir . '/dummy.conf');
$dummy = "[dummy]
user = ".Settings::Get('system.httpuser')."
listen = /run/" . base64_encode($configdir) . "-fpm.sock
listen = /run/" . md5($configdir) . "-fpm.sock
pm = static
pm.max_children = 1
";