Code

Fixed some checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Jan 2006 07:06:24 +0000 (07:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Jan 2006 07:06:24 +0000 (07:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2511 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAttachmentPool.inc

index b41d4a0b9a01e53d448736d98776836abccec570..4c7984cf32800256ee8965cc958b6a8e1462798b 100644 (file)
@@ -306,6 +306,7 @@ class glpiAttachmentPool extends plugin
   {
     $message = array();
     if($this->edit){
+      $this->name=trim($this->name);
       if(empty($this->name)){
         $message[] = _("Please specify a valid name for this attachment.");
       }