Show
Ignore:
Timestamp:
07/06/08 21:16:50 (5 years ago)
Author:
Tatzelwurm
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • downloadDatabase/files/lib/acp/form/DownloadDBKatAddForm.class.php

    r524 r589  
    5656                parent::readFormParameters(); 
    5757                                 
    58                 if (isset($_POST['topID']))                     $this->topID            = intval($_REQUEST['topID']); 
    59                 if (isset($_POST['name']))                      $this->name                     = escapeString(StringUtil::trim($_REQUEST['name'])); 
    60                 if (isset($_POST['description']))       $this->description      = escapeString(StringUtil::trim($_POST['description'])); 
     58                if (isset($_POST['topID']))                     $this->topID            = intval($_POST['topID']); 
     59                if (isset($_POST['name']))                      $this->name                     = StringUtil::trim($_POST['name']); 
     60                if (isset($_POST['description']))       $this->description      = StringUtil::trim($_POST['description']); 
    6161                if (isset($_POST['groupIDs']))          $this->groupIDs         = ArrayUtil::toIntegerArray($_POST['groupIDs']); 
    6262                if (isset($_POST['uploadGroups']))      $this->uploadGroups     = ArrayUtil::toIntegerArray($_POST['uploadGroups']); 
     
    118118                                        'enableHtml'    => intval($this->enableHtml), 
    119119                                        'enableSmilies' => intval($this->enableSmilies), 
    120                                         'languageID'    => intval($this->languageID) 
     120                                        'languageID'    => $this->languageID 
    121121                        ); 
    122                         $category = DownloadDBKatEditor::createCategory($this->topID, $this->name, $this->description, $this->groupIDs, $this->uploadGroups, intval($this->sortOrder), $moreData); 
     122                        $category = DownloadDBKatEditor::createCategory($this->topID, escapeString($this->name), escapeString($this->description), $this->groupIDs, $this->uploadGroups, intval($this->sortOrder), $moreData); 
    123123                } 
    124124                $this->saved();