plugins/SpecialUpdownload.php
changeset 343 7e6537fd4730
parent 318 eec2dfd2f0a3
equal deleted inserted replaced
342:a78b0798a116 343:7e6537fd4730
   233     $db->_die('The file data could not be selected.');
   233     $db->_die('The file data could not be selected.');
   234   }
   234   }
   235   if ( $db->numrows() < 1 )
   235   if ( $db->numrows() < 1 )
   236   {
   236   {
   237     header('HTTP/1.1 404 Not Found');
   237     header('HTTP/1.1 404 Not Found');
   238     die_friendly('File not found', '<p>The file "'.$filename.'" cannot be found.</p>');
   238     die_friendly('File not found', '<p>The file "'.htmlspecialchars($filename).'" cannot be found.</p>');
   239   }
   239   }
   240   $row = $db->fetchrow();
   240   $row = $db->fetchrow();
   241   $db->free_result();
   241   $db->free_result();
   242   
   242   
   243   // Check permissions
   243   // Check permissions