[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2228 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2228 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW i18nHTML-docs/WWW |
Date: |
Wed, 2 Nov 2005 00:10:07 -0800 (PST) |
Author: grothoff
Date: 2005-11-02 00:10:03 -0800 (Wed, 02 Nov 2005)
New Revision: 2228
Modified:
Extractor-docs/WWW/commitTranslation.php
GNUnet-docs/WWW/commitTranslation.php
doodle-docs/WWW/commitTranslation.php
i18nHTML-docs/WWW/commitTranslation.php
Log:
bogus submission block
Modified: Extractor-docs/WWW/commitTranslation.php
===================================================================
--- Extractor-docs/WWW/commitTranslation.php 2005-11-02 08:09:01 UTC (rev
2227)
+++ Extractor-docs/WWW/commitTranslation.php 2005-11-02 08:10:03 UTC (rev
2228)
@@ -26,6 +26,10 @@
W("Translating to English is not allowed.\n");
die();
}
+if (strstr($xlang, "@")) {
+ W("Invalid language.\n");
+ die();
+}
$text = urldecode($_REQUEST['text']);
$text_sql = mysql_real_escape_string($text);
$translation = fix($_REQUEST['translation']);
Modified: GNUnet-docs/WWW/commitTranslation.php
===================================================================
--- GNUnet-docs/WWW/commitTranslation.php 2005-11-02 08:09:01 UTC (rev
2227)
+++ GNUnet-docs/WWW/commitTranslation.php 2005-11-02 08:10:03 UTC (rev
2228)
@@ -26,6 +26,10 @@
W("Translating to English is not allowed.\n");
die();
}
+if (strstr($xlang, "@")) {
+ W("Invalid language.\n");
+ die();
+}
$text = urldecode($_REQUEST['text']);
$text_sql = mysql_real_escape_string($text);
$translation = fix($_REQUEST['translation']);
Modified: doodle-docs/WWW/commitTranslation.php
===================================================================
--- doodle-docs/WWW/commitTranslation.php 2005-11-02 08:09:01 UTC (rev
2227)
+++ doodle-docs/WWW/commitTranslation.php 2005-11-02 08:10:03 UTC (rev
2228)
@@ -26,6 +26,10 @@
W("Translating to English is not allowed.\n");
die();
}
+if (strstr($xlang, "@")) {
+ W("Invalid language.\n");
+ die();
+}
$text = urldecode($_REQUEST['text']);
$text_sql = mysql_real_escape_string($text);
$translation = fix($_REQUEST['translation']);
Modified: i18nHTML-docs/WWW/commitTranslation.php
===================================================================
--- i18nHTML-docs/WWW/commitTranslation.php 2005-11-02 08:09:01 UTC (rev
2227)
+++ i18nHTML-docs/WWW/commitTranslation.php 2005-11-02 08:10:03 UTC (rev
2228)
@@ -26,6 +26,10 @@
W("Translating to English is not allowed.\n");
die();
}
+if (strstr($xlang, "@")) {
+ W("Invalid language.\n");
+ die();
+}
$text = urldecode($_REQUEST['text']);
$text_sql = mysql_real_escape_string($text);
$translation = fix($_REQUEST['translation']);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2228 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW i18nHTML-docs/WWW,
grothoff <=