Code

Updated strings, added problematic check
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 19:05:13 +0000 (19:05 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 19:05:13 +0000 (19:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17859 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/password.php
gosa-core/plugins/personal/password/class_password.inc

index fae474500c3e70a29ccd64a61f9cb8f38b89ff5c..9bbeab615f8c799b5f37f922d3ce1bff8e2d7a1b 100644 (file)
@@ -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)) {
index 3d25d02b0035678019f26dac229c93107953d6cb..98ecc9887e1444ca76395e7c194e9837582d3694 100644 (file)
@@ -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);