From 9e1b91e1777fb60f16848b8c843ec4240af04845 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Sep 2006 08:08:56 +0000 Subject: [PATCH] Added popup that warns a user to avoid adding users with too long dns as repsonsible person in glpi git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4796 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc index 10155ac12..8fe879630 100644 --- a/plugins/admin/systems/class_glpiAccount.inc +++ b/plugins/admin/systems/class_glpiAccount.inc @@ -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']); -- 2.30.2