Code

Added popup that warns a user to avoid adding users with too long dns as repsonsible...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Sep 2006 08:08:56 +0000 (08:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Sep 2006 08:08:56 +0000 (08:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4796 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc

index 10155ac1251153eb6bedc41f62b28b8601e700ff..8fe8796309c71eef804a28b79e88138cae1b439e 100644 (file)
@@ -491,7 +491,11 @@ class glpiAccount extends plugin
     }
 
     /* Technical responsible person selected*/
-    if(isset($_GET['act'])&&($_GET['act']=="user_tech_num")){
+    if(isset($_GET['act'])&&($_GET['act']=="user_tech_num")&&(strlen($_GET['id']) > 100)){
+      print_red(sprintf(_("Could not add the given user, the users dn is too long, only 100 characters are allowed here.")));
+
+    }elseif(isset($_GET['act'])&&($_GET['act']=="user_tech_num") && strlen($_GET['id'])){
+
 
       /* Get posted id */
       $id = base64_decode($_GET['id']);