1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Use PHP 5.3 functions

This commit is contained in:
Jakub Vrana
2025-03-05 15:45:37 +01:00
parent 0bf8861dd1
commit c873ceba17
4 changed files with 5 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ function email_header($header) {
* @return bool
*/
function send_mail($email, $subject, $message, $from = "", $files = array()) {
$eol = (DIRECTORY_SEPARATOR == "/" ? "\n" : "\r\n"); // PHP_EOL available since PHP 5.0.2
$eol = PHP_EOL;
$message = str_replace("\n", $eol, wordwrap(str_replace("\r", "", "$message\n")));
$boundary = uniqid("boundary");
$attachments = "";