summaryrefslogtreecommitdiff
path: root/inc/mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/mail.php')
-rw-r--r--inc/mail.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/inc/mail.php b/inc/mail.php
index 4dfc77552..f127ea989 100644
--- a/inc/mail.php
+++ b/inc/mail.php
@@ -6,14 +6,14 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
- if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/');
- require_once(DOKU_INC.'inc/utf8.php');
- require_once(DOKU_INC.'inc/EmailAddressValidator.php');
-
- // end of line for mail lines - RFC822 says CRLF but postfix (and other MTAs?)
- // think different
- if(!defined('MAILHEADER_EOL')) define('MAILHEADER_EOL',"\n");
- #define('MAILHEADER_ASCIIONLY',1);
+if(!defined('DOKU_INC')) die('meh.');
+require_once(DOKU_INC.'inc/utf8.php');
+require_once(DOKU_INC.'inc/EmailAddressValidator.php');
+
+// end of line for mail lines - RFC822 says CRLF but postfix (and other MTAs?)
+// think different
+if(!defined('MAILHEADER_EOL')) define('MAILHEADER_EOL',"\n");
+#define('MAILHEADER_ASCIIONLY',1);
/**
* Patterns for use in email detection and validation