commit 5be37f938e1796920dc074ab33903d2a8f35d9fd
parent 93f7b837f8b72b3a686301fbb9426dd4c816266e
Author: dankert <devnull@localhost>
Date: Sat, 20 Mar 2010 00:02:42 +0100
Warnmeldung, wenn ungültige Zeichen in der Eingabe gefunden wurden.
Diffstat:
7 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php
@@ -182,7 +182,12 @@ class Action
}
$value = $REQ[ $varName ];
- return Text::clean( $value, $white );
+ $newValue = Text::clean( $value, $white );
+
+ if ( strlen($newValue) != strlen($value) )
+ $this->addNotice('','','UNEXPECTED_CHARS',OR_NOTICE_WARN);
+
+ return $newValue;
}
diff --git a/language/de.ini.php b/language/de.ini.php
@@ -947,6 +947,7 @@ NOTICE_USER_ADDED = "Der Benutzer wurde hinzugefügt."
NOTICE_USER_ADDED_TO_GROUP = "Die Mitgliedschaften in der Gruppe wurden aktualisiert, {count} Benutzer hinzugefügt."
NOTICE_USER_ALREADY_IN_DATABASE = "Der Benutzer ist bereits vorhanden. Bitte wählen Sie einen anderen Benutzernamen."
NOTICE_VALUE_SAVED = "Inhalt wurde gespeichert."
+NOTICE_UNEXPECTED_CHARS = "Ihre Eingabe enthielt ungültige Zeichen, diese wurden entfernt."
OPENID="Open-ID"
OPENID_USER="Open-ID Benutzername"
OPTIONS="Optionen"
diff --git a/language/en.ini.php b/language/en.ini.php
@@ -1120,3 +1120,4 @@ EL_LINKDATE_DATE_SAVED = "Linked object: Date/Time of last save"
EL_LINKDATE_DESC = "The Link-Info-Date is a date of a linked object"
EL_LINKDATE = "Link-Info-Date"
NOTICE_IMAGE_RESIZING_UNKNOWN_TYPE="This image type is not supported."
+NOTICE_UNEXPECTED_CHARS = "The input data contains unexpected chars which were removed."+
\ No newline at end of file
diff --git a/language/es.ini.php b/language/es.ini.php
@@ -1137,3 +1137,4 @@ EL_LINKDATE_DATE_SAVED = "Linked object: Date/Time of last save"
EL_LINKDATE_DESC = "The Link-Info-Date is a date of a linked object"
EL_LINKDATE = "Link-Info-Date"
NOTICE_IMAGE_RESIZING_UNKNOWN_TYPE="This image type is not supported."
+NOTICE_UNEXPECTED_CHARS = "The input data contains unexpected chars which were removed."
diff --git a/language/fr.ini.php b/language/fr.ini.php
@@ -1136,3 +1136,4 @@ EL_LINKDATE_DATE_SAVED = "Linked object: Date/Time of last save"
EL_LINKDATE_DESC = "The Link-Info-Date is a date of a linked object"
EL_LINKDATE = "Link-Info-Date"
NOTICE_IMAGE_RESIZING_UNKNOWN_TYPE="This image type is not supported."
+NOTICE_UNEXPECTED_CHARS = "The input data contains unexpected chars which were removed."
diff --git a/language/it.ini.php b/language/it.ini.php
@@ -1136,3 +1136,4 @@ EL_LINKDATE_DATE_SAVED = "Linked object: Date/Time of last save"
EL_LINKDATE_DESC = "The Link-Info-Date is a date of a linked object"
EL_LINKDATE = "Link-Info-Date"
NOTICE_IMAGE_RESIZING_UNKNOWN_TYPE="This image type is not supported."
+NOTICE_UNEXPECTED_CHARS = "The input data contains unexpected chars which were removed."
diff --git a/language/ru.ini.php b/language/ru.ini.php
@@ -1135,3 +1135,4 @@ EL_LINKDATE_DATE_SAVED = "Linked object: Date/Time of last save"
EL_LINKDATE_DESC = "The Link-Info-Date is a date of a linked object"
EL_LINKDATE = "Link-Info-Date"
NOTICE_IMAGE_RESIZING_UNKNOWN_TYPE="This image type is not supported."
+NOTICE_UNEXPECTED_CHARS = "The input data contains unexpected chars which were removed."