*** empty log message ***
authorKasper Skårhøj <kasper@typo3.org>
Thu, 1 Apr 2004 14:51:02 +0000 (14:51 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Thu, 1 Apr 2004 14:51:02 +0000 (14:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@184 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/gfx/fileicons/t3d.gif [new file with mode: 0644]
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_fe.php

diff --git a/t3lib/gfx/fileicons/t3d.gif b/t3lib/gfx/fileicons/t3d.gif
new file mode 100644 (file)
index 0000000..01bc121
Binary files /dev/null and b/t3lib/gfx/fileicons/t3d.gif differ
index 84e081d..e45480f 100755 (executable)
@@ -1674,11 +1674,11 @@ class tslib_cObj {
                                                        $option.= $this->stdWrap(trim($items[$a][0]), $conf['radioWrap.']);
                                                        $option.= '<br />';
                                                }
-                                               $fieldCode=$option;
+                                               $fieldCode = $option;
                                        break;
                                        case 'hidden':
                                                $value = trim($parts[2]);
-                                               if (strlen($value) && $confData['fieldname']=='recipient_copy') {
+                                               if (strlen($value) && t3lib_div::inList('recipient_copy,recipient',$confData['fieldname']))     {
                                                        $value = $GLOBALS['TSFE']->codeString($value);
                                                }
                                                $hiddenfields.=sprintf('<input type="hidden" name="%s" value="%s" />',
@@ -1801,7 +1801,7 @@ class tslib_cObj {
                        while(list($hF_key,$hF_conf) = each($conf['hiddenFields.']))    {
                                if (substr($hF_key,-1)!='.')    {
                                        $hF_value = $this->cObjGetSingle($hF_conf,$conf['hiddenFields.'][$hF_key.'.'],'hiddenfields');
-                                       if (strlen($value) && $hF_key=='recipient_copy')        {
+                                       if (strlen($hF_value) && t3lib_div::inList('recipient_copy,recipient',$hF_key)) {
                                                $hF_value = $GLOBALS['TSFE']->codeString($hF_value);
                                        }
                                        $hiddenfields.='<input type="hidden" name="'.$hF_key.'" value="'.htmlspecialchars($hF_value).'" />';
index f84d4b9..b2bd41b 100755 (executable)
@@ -2546,13 +2546,11 @@ if (version == "n3") {
        }
 
        /**
-        * En/decodes strings with lightweight encryption and a hash containing the server encryptionKey (salt)
-        * Can be used for authentication of information sent from server generated pages back to the server to establish that the server generated the page. (Like hidden fields with recipient mail addresses)
-        * Encryption is mainly to avoid spam-bots to pick up information.
+        * Encrypts a strings by XOR'ing all characters with the ASCII value of a character in $this->TYPO3_CONF_VARS['SYS']['encryptionKey']
+        * If $this->TYPO3_CONF_VARS['SYS']['encryptionKey'] is empty, 255 is used for XOR'ing. Using XOR means that the string can be decrypted by simply calling the function again - just like rot-13 works (but in this case for ANY byte value).
         *
-        * @param       string          Input string to en/decode
-        * @param       boolean         If set, string is decoded, not encoded.
-        * @return      string          encoded/decoded version of $string
+        * @param       string          Input string
+        * @return      string          Output string
         */
        function roundTripCryptString($string)  {
                $out = '';