Skip to content

Commit 572668e

Browse files
author
Till Brehm
committed
Added escapeshellarg to postfix config file chown and chgrp in installer.
1 parent 2d374af commit 572668e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,9 @@ public function process_postfix_config($configfile) {
755755
wf($full_file_name, $content);
756756

757757
//* Changing mode and group of the new created config file
758-
caselog('chmod u=rw,g=r,o= '.$full_file_name.' &> /dev/null',
758+
caselog('chmod u=rw,g=r,o= '.escapeshellarg($full_file_name).' &> /dev/null',
759759
__FILE__, __LINE__, 'chmod on '.$full_file_name, 'chmod on '.$full_file_name.' failed');
760-
caselog('chgrp '.$postfix_group.' '.$full_file_name.' &> /dev/null',
760+
caselog('chgrp '.escapeshellarg($postfix_group).' '.escapeshellarg($full_file_name).' &> /dev/null',
761761
__FILE__, __LINE__, 'chgrp on '.$full_file_name, 'chgrp on '.$full_file_name.' failed');
762762

763763
}

0 commit comments

Comments
 (0)