aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/ChangeLog5
-rw-r--r--include/config_default.inc.php8
-rw-r--r--password.php11
3 files changed, 20 insertions, 4 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 70cc30e6c..a38f0ae93 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-18 Pierrick LE GALL
+
+ * bug 159 and 166 fixed: parameter "options" for mail() function
+ disabled by default.
+
2005-10-18 chrisaga
* display : smaller font-size and, as requested, fonts more like 1.4
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 119aafde2..3b48dc72a 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -178,6 +178,10 @@ $conf['prefix_thumbnail'] = 'TN-';
// Administration>Identification>Users?
$conf['users_page'] = 20;
+// mail_options: only set it true if you have a send mail warning with
+// "options" parameter missing on mail() function execution.
+$conf['mail_options'] = false;
+
// +-----------------------------------------------------------------------+
// | metadata |
// +-----------------------------------------------------------------------+
@@ -361,13 +365,13 @@ $conf['upload_maxheight_thumbnail'] = 100;
$conf['upload_maxwidth_thumbnail'] = 150;
// +-----------------------------------------------------------------------+
-// | history |
+// | history |
// +-----------------------------------------------------------------------+
// nb_logs_page : how many logs to display on a page
$conf['nb_logs_page'] = 300;
-// history__admin : history admin visits ?
+// history_admin : history admin visits ?
$conf['history_admin'] = false;
?>
diff --git a/password.php b/password.php
index 0be971964..f5ee6b2f8 100644
--- a/password.php
+++ b/password.php
@@ -52,8 +52,15 @@ function pwg_mail($to, $from, $infos = '')
$content = $infos;
$content.= "\n\n-- \nPhpWebGallery ".PHPWG_VERSION;
-
- return mail($to, $subject, $content, $headers, $options);
+
+ if ($conf['mail_options'])
+ {
+ return mail($to, $subject, $content, $headers, $options);
+ }
+ else
+ {
+ return mail($to, $subject, $content, $headers);
+ }
}
// +-----------------------------------------------------------------------+