From: cajus Date: Mon, 26 Apr 2010 19:05:13 +0000 (+0000) Subject: Updated strings, added problematic check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e5affbe713612e658ba0b26787d5471a171e4e8;p=gosa.git Updated strings, added problematic check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17859 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index fae474500..9bbeab615 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -236,6 +236,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])) { $message[]= _("The password used as new is to short!"); } } + if(!passwordMethod::is_harmless($_POST['new_password'])){ + $message[]= _("The password contains possibly problematic unicode characters!"); + } /* Validate */ if (!tests::is_uid($uid)) { diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc index 3d25d02b0..98ecc9887 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -91,7 +91,7 @@ class password extends plugin _("The password used as new is to short."),WARNING_DIALOG); }elseif(!passwordMethod::is_harmless($_POST['new_password'])){ msg_dialog::display(_("Password change"), - _("The password contains possibly problematic unicode characters."),WARNING_DIALOG); + _("The password contains possibly problematic unicode characters!"),WARNING_DIALOG); }elseif($check_hook && $check_hook_output != ""){ msg_dialog::display(_("Password change"), sprintf(_("External password changer reported a problem: %s."),$check_hook_output),WARNING_DIALOG);