Skip to content

Commit

Permalink
Merge pull request #29 from githubuserx/develop
Browse files Browse the repository at this point in the history
Avoid "open_basedir restriction" error
  • Loading branch information
fabacab committed Apr 14, 2018
2 parents 53ecb3c + 9e0b83e commit 78cfb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wp-smime.php
Expand Up @@ -107,7 +107,7 @@ public static function pemToDer ( $pem_str ) {
* @return array|FALSE An array with two keys, `headers` and `message`, wherein the message is encrypted.
*/
public static function encrypt ( $message, $headers, $certificates ) {
$infile = tempnam( '/tmp', 'wp_email_' );
$infile = tempnam( sys_get_temp_dir(), 'wp_email_' );
$outfile = $infile . '.enc';

$plaintext = ( is_array( $headers ) ) ? implode( "\n", $headers ) : $headers;
Expand Down

0 comments on commit 78cfb83

Please sign in to comment.