Merge pull request #1148 from egyptianbman/escape-message-id

Escape Message-ID during update binaries
This commit is contained in:
DariusIII
2021-01-11 23:35:36 +01:00
committed by GitHub
+3
View File
@@ -895,6 +895,9 @@ class Binaries
$binariesUpdate[$binaryID]['Parts']++;
}
// In case there are quotes in the message id
$this->header['Message-ID'] = addslashes($this->header['Message-ID']);
// Strip the < and >, saves space in DB.
$this->header['Message-ID'][0] = "'";