[chora] Fwd: not sure where to post this...sorry

Jan Schneider jan at horde.org
Thu Sep 4 14:15:19 PDT 2003



----- Weitergeleitete Nachricht von johnson at nicusa.com -----
    Datum: Thu, 4 Sep 2003 12:52:29 -0400
    Von: "John L. Johnson" <johnson at nicusa.com>
Antwort an: johnson at nicusa.com
 Betreff: not sure where to post this...sorry
      An: jan at ammma.de

In Chora 1.2, the "diffs ignoring whitespace" was not actually triggering
the proper type of diff, until I made this change to Chora.php:

--- Chora.php.jj    2003-09-03 16:31:50.610016000 -0400
+++ Chora.php   2003-09-03 17:51:36.830003000 -0400
@@ -250,7 +250,10 @@

         $argarr = array();
         foreach ($arglist as $key => $val) {
-            if (!empty($val)) {
+//            if (!empty($val)) {
+// JJNIC - 09/03/03
+// empty returns true for a zero value, breaking ws (whitespace) variable,
etc
+            if (isset($val)) {
                 $val = htmlspecialchars($val);
                 $argarr[] = "$key=$val";
             }



----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the chora mailing list