Commit 913ee32c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #7600: Path to sendEmail has changed and is updated now. Add clearstatcache().

parent 86544fce
Pipeline #1281 passed with stage
in 1 minute and 34 seconds
......@@ -229,10 +229,14 @@ class SendMail {
if ($rc != 0) {
// After first installation of QFQ extension, the PERL script is not executable: is this the problem here?
clearstatcache();
$perms = fileperms($sendEmail);
if (!($perms & 0x0040)) {
chmod($sendEmail, 0755);
clearstatcache();
if(!is_file($sendEmail) || is_readable($sendEmail)){
throw new UserFormException(json_encode([ERROR_MESSAGE_TO_USER => "Command 'sendEmail' not found."
, ERROR_MESSAGE_SUPPORT => $sendEmail]), ERROR_SENDMAIL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment