* Minor change to spamProtectEmailAddresses ASCII
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Wed, 13 Apr 2005 16:03:55 +0000 (16:03 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Wed, 13 Apr 2005 16:03:55 +0000 (16:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@628 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/class.tslib_pagegen.php

index 211e4a8..0e040aa 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2005-04-13  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Cleaned up tslib_content by putting some lines of redundant code into new function getMailTo()
+       * Minor change to spamProtectEmailAddresses ASCII
 
 2005-04-13  Karsten Dambekalns <karsten@typo3.org>
 
index 3b1c329..ad9449b 100755 (executable)
@@ -3043,7 +3043,7 @@ if (version == "n3") {
        function encryptEmail($string,$back=0)  {
                $out = '';
 
-               if ($this->spamProtectEmailAddresses == 'ascii') {
+               if ($this->spamProtectEmailAddresses === 'ascii') {
                        for ($a=0; $a<strlen($string); $a++) {
                                $out .= '&#'.ord(substr($string, $a, 1)).';';
                        }
index fe70f5b..801b4ae 100755 (executable)
@@ -133,7 +133,7 @@ class TSpagegen {
                        // Internal and External target defaults
                $GLOBALS['TSFE']->intTarget = ''.$GLOBALS['TSFE']->config['config']['intTarget'];
                $GLOBALS['TSFE']->extTarget = ''.$GLOBALS['TSFE']->config['config']['extTarget'];
-               if ($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses'] == 'ascii') {
+               if ($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses'] === 'ascii') {
                        $GLOBALS['TSFE']->spamProtectEmailAddresses = 'ascii';
                } else {
                        $GLOBALS['TSFE']->spamProtectEmailAddresses = t3lib_div::intInRange($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses'],-5,5,0);