Index: trunk/kernel/units/general/cat_dbitem.php =================================================================== diff -u -N -r5514 -r5558 --- trunk/kernel/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 5514) +++ trunk/kernel/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 5558) @@ -211,7 +211,9 @@ function stripDisallowed($filename) { $filenames_helper =& $this->Application->recallObject('FilenamesHelper'); - return $filenames_helper->stripDisallowed(TABLE_PREFIX.'CategoryItems', 'ItemResourceId', $this->GetDBField('ResourceId'), $filename); + $table = $this->mode == 't' ? $this->Application->GetTempName(TABLE_PREFIX.'CategoryItems') : TABLE_PREFIX.'CategoryItems'; + + return $filenames_helper->stripDisallowed($table, 'ItemResourceId', $this->GetDBField('ResourceId'), $filename); } /* commented out because it's called only from stripDisallowed body, which is moved to helper