gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2316 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW


From: grothoff
Subject: [GNUnet-SVN] r2316 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW i18nHTML/src i18nHTML-docs/WWW
Date: Sun, 11 Dec 2005 22:55:25 -0800 (PST)

Author: grothoff
Date: 2005-12-11 22:55:15 -0800 (Sun, 11 Dec 2005)
New Revision: 2316

Modified:
   Extractor-docs/WWW/editor.php
   Extractor-docs/WWW/translate.php
   GNUnet-docs/WWW/editor.php
   GNUnet-docs/WWW/translate.php
   doodle-docs/WWW/editor.php
   doodle-docs/WWW/translate.php
   i18nHTML-docs/WWW/editor.php
   i18nHTML-docs/WWW/translate.php
   i18nHTML/src/editor.php
   i18nHTML/src/translate.php
Log:
trying to fix mantis 933

Modified: Extractor-docs/WWW/editor.php
===================================================================
--- Extractor-docs/WWW/editor.php       2005-12-10 06:57:52 UTC (rev 2315)
+++ Extractor-docs/WWW/editor.php       2005-12-12 06:55:15 UTC (rev 2316)
@@ -90,14 +90,14 @@
     if ($result2)
       $num2 = mysql_numrows($result2);
     echo "<tr><td width=\"45%\">";
-    echo "&quot;$cx_plain&quot;";
-    echo "</td>\n\t<td width\"50\%\">";
+    echo "&quot;" . htmlentities($cx_plain) . "&quot;";
+    echo "</td>\n\t<td width=\"50%\">";
     if ($num2 > 0) {
       $query = "DELETE FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$lang\" 
AND c=\"$cx_sql\"";
       mysql_query($query, $connection);
       W("Skipped (already translated).");
     } else {
-      echo "<input size=\"40\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
+      echo "<input size=\"49%\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
     }
   }
   echo "</tr></table>";

Modified: Extractor-docs/WWW/translate.php
===================================================================
--- Extractor-docs/WWW/translate.php    2005-12-10 06:57:52 UTC (rev 2315)
+++ Extractor-docs/WWW/translate.php    2005-12-12 06:55:15 UTC (rev 2316)
@@ -38,7 +38,7 @@
   die();
  }
 H2("Original Text");
-echo $text;
+echo htmlentities($text);
 H2("Translation");
 W("Destination language: ");
 W($lang);
@@ -48,7 +48,7 @@
 echo "<input type=hidden name=\"xlang\" value=\"$xlang\">\n";
 echo "<input type=hidden name=\"back\" value=\"$back\">\n";
 W("Translated text:");
-echo "<input size=\"80\" maxlength=\"65535\" name=\"translation\">\n";
+echo "<input size=\"80%\" maxlength=\"65535\" name=\"translation\">\n";
 echo "<input type=submit value=\"" .
      TRANSLATE_("I hereby give this translation into the Public Domain 
(commit)") .
      "\">\n";

Modified: GNUnet-docs/WWW/editor.php
===================================================================
--- GNUnet-docs/WWW/editor.php  2005-12-10 06:57:52 UTC (rev 2315)
+++ GNUnet-docs/WWW/editor.php  2005-12-12 06:55:15 UTC (rev 2316)
@@ -90,14 +90,14 @@
     if ($result2)
       $num2 = mysql_numrows($result2);
     echo "<tr><td width=\"45%\">";
-    echo "&quot;$cx_plain&quot;";
-    echo "</td>\n\t<td width\"50\%\">";
+    echo "&quot;" . htmlentities($cx_plain) . "&quot;";
+    echo "</td>\n\t<td width=\"50%\">";
     if ($num2 > 0) {
       $query = "DELETE FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$lang\" 
AND c=\"$cx_sql\"";
       mysql_query($query, $connection);
       W("Skipped (already translated).");
     } else {
-      echo "<input size=\"40\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
+      echo "<input size=\"49%\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
     }
   }
   echo "</tr></table>";

Modified: GNUnet-docs/WWW/translate.php
===================================================================
--- GNUnet-docs/WWW/translate.php       2005-12-10 06:57:52 UTC (rev 2315)
+++ GNUnet-docs/WWW/translate.php       2005-12-12 06:55:15 UTC (rev 2316)
@@ -38,7 +38,7 @@
   die();
  }
 H2("Original Text");
-echo $text;
+echo htmlentities($text);
 H2("Translation");
 W("Destination language: ");
 W($lang);
@@ -48,7 +48,7 @@
 echo "<input type=hidden name=\"xlang\" value=\"$xlang\">\n";
 echo "<input type=hidden name=\"back\" value=\"$back\">\n";
 W("Translated text:");
-echo "<input size=\"80\" maxlength=\"65535\" name=\"translation\">\n";
+echo "<input size=\"80%\" maxlength=\"65535\" name=\"translation\">\n";
 echo "<input type=submit value=\"" .
      TRANSLATE_("I hereby give this translation into the Public Domain 
(commit)") .
      "\">\n";

Modified: doodle-docs/WWW/editor.php
===================================================================
--- doodle-docs/WWW/editor.php  2005-12-10 06:57:52 UTC (rev 2315)
+++ doodle-docs/WWW/editor.php  2005-12-12 06:55:15 UTC (rev 2316)
@@ -90,14 +90,14 @@
     if ($result2)
       $num2 = mysql_numrows($result2);
     echo "<tr><td width=\"45%\">";
-    echo "&quot;$cx_plain&quot;";
-    echo "</td>\n\t<td width\"50\%\">";
+    echo "&quot;" . htmlentities($cx_plain) . "&quot;";
+    echo "</td>\n\t<td width=\"50%\">";
     if ($num2 > 0) {
       $query = "DELETE FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$lang\" 
AND c=\"$cx_sql\"";
       mysql_query($query, $connection);
       W("Skipped (already translated).");
     } else {
-      echo "<input size=\"40\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
+      echo "<input size=\"49%\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
     }
   }
   echo "</tr></table>";

Modified: doodle-docs/WWW/translate.php
===================================================================
--- doodle-docs/WWW/translate.php       2005-12-10 06:57:52 UTC (rev 2315)
+++ doodle-docs/WWW/translate.php       2005-12-12 06:55:15 UTC (rev 2316)
@@ -38,7 +38,7 @@
   die();
  }
 H2("Original Text");
-echo $text;
+echo htmlentities($text);
 H2("Translation");
 W("Destination language: ");
 W($lang);
@@ -48,7 +48,7 @@
 echo "<input type=hidden name=\"xlang\" value=\"$xlang\">\n";
 echo "<input type=hidden name=\"back\" value=\"$back\">\n";
 W("Translated text:");
-echo "<input size=\"80\" maxlength=\"65535\" name=\"translation\">\n";
+echo "<input size=\"80%\" maxlength=\"65535\" name=\"translation\">\n";
 echo "<input type=submit value=\"" .
      TRANSLATE_("I hereby give this translation into the Public Domain 
(commit)") .
      "\">\n";

Modified: i18nHTML/src/editor.php
===================================================================
--- i18nHTML/src/editor.php     2005-12-10 06:57:52 UTC (rev 2315)
+++ i18nHTML/src/editor.php     2005-12-12 06:55:15 UTC (rev 2316)
@@ -90,14 +90,14 @@
     if ($result2)
       $num2 = mysql_numrows($result2);
     echo "<tr><td width=\"45%\">";
-    echo "&quot;$cx_plain&quot;";
-    echo "</td>\n\t<td width\"50\%\">";
+    echo "&quot;" . htmlentities($cx_plain) . "&quot;";
+    echo "</td>\n\t<td width=\"50%\">";
     if ($num2 > 0) {
       $query = "DELETE FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$lang\" 
AND c=\"$cx_sql\"";
       mysql_query($query, $connection);
       W("Skipped (already translated).");
     } else {
-      echo "<input size=\"40\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
+      echo "<input size=\"49%\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
     }
   }
   echo "</tr></table>";

Modified: i18nHTML/src/translate.php
===================================================================
--- i18nHTML/src/translate.php  2005-12-10 06:57:52 UTC (rev 2315)
+++ i18nHTML/src/translate.php  2005-12-12 06:55:15 UTC (rev 2316)
@@ -38,7 +38,7 @@
   die();
  }
 H2("Original Text");
-echo $text;
+echo htmlentities($text);
 H2("Translation");
 W("Destination language: ");
 W($lang);
@@ -48,7 +48,7 @@
 echo "<input type=hidden name=\"xlang\" value=\"$xlang\">\n";
 echo "<input type=hidden name=\"back\" value=\"$back\">\n";
 W("Translated text:");
-echo "<input size=\"80\" maxlength=\"65535\" name=\"translation\">\n";
+echo "<input size=\"80%\" maxlength=\"65535\" name=\"translation\">\n";
 echo "<input type=submit value=\"" .
      TRANSLATE_("I hereby give this translation into the Public Domain 
(commit)") .
      "\">\n";

Modified: i18nHTML-docs/WWW/editor.php
===================================================================
--- i18nHTML-docs/WWW/editor.php        2005-12-10 06:57:52 UTC (rev 2315)
+++ i18nHTML-docs/WWW/editor.php        2005-12-12 06:55:15 UTC (rev 2316)
@@ -90,14 +90,14 @@
     if ($result2)
       $num2 = mysql_numrows($result2);
     echo "<tr><td width=\"45%\">";
-    echo "&quot;$cx_plain&quot;";
-    echo "</td>\n\t<td width\"50\%\">";
+    echo "&quot;" . htmlentities($cx_plain) . "&quot;";
+    echo "</td>\n\t<td width=\"50%\">";
     if ($num2 > 0) {
       $query = "DELETE FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$lang\" 
AND c=\"$cx_sql\"";
       mysql_query($query, $connection);
       W("Skipped (already translated).");
     } else {
-      echo "<input size=\"40\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
+      echo "<input size=\"49%\" maxlength=\"65535\" name=\"" . 
bin2hex(md5($cx_plain)) . "\"></td></tr>\n";
     }
   }
   echo "</tr></table>";

Modified: i18nHTML-docs/WWW/translate.php
===================================================================
--- i18nHTML-docs/WWW/translate.php     2005-12-10 06:57:52 UTC (rev 2315)
+++ i18nHTML-docs/WWW/translate.php     2005-12-12 06:55:15 UTC (rev 2316)
@@ -38,7 +38,7 @@
   die();
  }
 H2("Original Text");
-echo $text;
+echo htmlentities($text);
 H2("Translation");
 W("Destination language: ");
 W($lang);
@@ -48,7 +48,7 @@
 echo "<input type=hidden name=\"xlang\" value=\"$xlang\">\n";
 echo "<input type=hidden name=\"back\" value=\"$back\">\n";
 W("Translated text:");
-echo "<input size=\"80\" maxlength=\"65535\" name=\"translation\">\n";
+echo "<input size=\"80%\" maxlength=\"65535\" name=\"translation\">\n";
 echo "<input type=submit value=\"" .
      TRANSLATE_("I hereby give this translation into the Public Domain 
(commit)") .
      "\">\n";





reply via email to

[Prev in Thread] Current Thread [Next in Thread]