[TYPO3-german] Leere Seite bei tt_news Datensätze bearbeiten

Frank Tilch typo3 at lizardlab.de
Sun Sep 16 09:55:33 CEST 2007


Hallo Liste

habe seit einem Serverupdate auf PHP 5.0.3 ein kleines Problemchen
mit dem Bearbeiten der Datensätze (tt_news) ... und zwar erscheint nur
noch eine leere (weiße) Seite.

Ich habe jetzt dies hier gefunden: http://bugs.typo3.org/view.php?id=4678


--- class.t3lib_div-orig.php    2006-12-22 10:09:11.000000000 +0100
+++ class.t3lib_div.php 2006-12-22 10:08:22.000000000 +0100
@@ -2078,7 +2078,8 @@
                                } else {        // Just a value:
 
                                                // Look for binary chars:
-                                       if (strcspn($v,$binaryChars) != strlen($v))     {       // Go for base64 encoding if the initial segment NOT matching any binary char has the same length as the whole string!
+                                       $vLen = strlen($v);     // check for length, because PHP 5.2.0 crashes when first argument of strcspn is empty
+                                       if ($vLen && strcspn($v,$binaryChars) != $vLen) {       // Go for base64 encoding if the initial segment NOT matching any binary char has the same length as the whole string!
                                                        // If the value contained binary chars then we base64-encode it an set an attribute to notify this situation:
                                                $content = chr(10).chunk_split(base64_encode($v));
                                                $attr.=' base64="1"';



Dies scheint sich aber auf eine andere T3-Version zu beziehen als
4.1.2 welche hier läuft. Bei mir sehen die entsprechenden Zeilen
nämlich so aus:

                                } else {        // Just a value:

                                                // Look for binary chars:
                                        $vLen = strlen($v);     // check for length, because PHP 5.2.0 may crash when first argument of strcspn is empty
                                        if ($vLen && strcspn($v,$binaryChars) != $vLen) {       // Go for base64 encoding if the initial segment NOT matching any binary char has the same length as the whole string!
                                                        // If the value contained binary chars then we base64-encode it an set an attribute to notify this situation:
                                                $content = $nl.chunk_split(base64_encode($v));
                                                $attr.=' base64="1"';


Offensichtlich ist hier das Problem schon gefixt, klappt aber leider
trotzdem nicht :-(

Hätte da jemand einen Tipp, würde vielleicht ein Update auf PHP5.2 was
bringen?

Viele Grüsse
Frank






More information about the TYPO3-german mailing list