commit a40f30f0fe5418e202f4891fb87c6780079be14c
parent 0f5032b18334f890a2d7dcc28f65dea9f41b98c1
Author: dankert <devnull@localhost>
Date: Fri, 19 Mar 2010 23:51:38 +0100
Einschränkung im Zeichensatz für Dateinamen
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/actionClasses/FileAction.class.php b/actionClasses/FileAction.class.php
@@ -87,10 +87,10 @@ class FileAction extends ObjectAction
function saveprop()
{
// Eigenschaften speichern
- $this->file->filename = $this->getRequestVar('filename' ,'alphanum');
- $this->file->name = $this->getRequestVar('name' ,'full' );
- $this->file->extension = $this->getRequestVar('extension' ,'alphanum');
- $this->file->desc = $this->getRequestVar('description','full' );
+ $this->file->filename = $this->getRequestVar('filename' ,OR_FILTER_FILENAME);
+ $this->file->name = $this->getRequestVar('name' ,OR_FILTER_FULL );
+ $this->file->extension = $this->getRequestVar('extension' ,OR_FILTER_FILENAME);
+ $this->file->desc = $this->getRequestVar('description',OR_FILTER_FULL );
$this->file->save();
$this->file->setTimestamp();
@@ -562,7 +562,7 @@ class FileAction extends ObjectAction
*/
function compressAction()
{
- $format = $this->getRequestVar('format','alphanum');
+ $format = $this->getRequestVar('format',OR_FILTER_ALPHANUM);
switch( $format )
{
diff --git a/actionClasses/PageAction.class.php b/actionClasses/PageAction.class.php
@@ -307,9 +307,9 @@ class PageAction extends ObjectAction
{
if ( $this->getRequestVar('name')!='' )
{
- $this->page->name = $this->getRequestVar('name' ,'full' );
- $this->page->filename = $this->getRequestVar('filename' ,'alphanum');
- $this->page->desc = $this->getRequestVar('description','full' );
+ $this->page->name = $this->getRequestVar('name' ,OR_FILTER_FULL );
+ $this->page->filename = $this->getRequestVar('filename' ,OR_FILTER_FILENAME);
+ $this->page->desc = $this->getRequestVar('description',OR_FILTER_FULL );
$this->page->save();
$this->addNotice($this->page->getType(),$this->page->name,'PROP_SAVED','ok');