plugins/SpecialUpdownload.php
changeset 1171 d42d46e13b36
parent 1081 745200a9cc2a
child 1175 1e2c9819ede3
--- a/plugins/SpecialUpdownload.php	Thu Dec 17 04:31:55 2009 -0500
+++ b/plugins/SpecialUpdownload.php	Thu Dec 17 22:42:32 2009 -0500
@@ -108,7 +108,8 @@
     $ext = substr($filename, strrpos($filename, '.'), strlen($filename));
     $flen = filesize($file['tmp_name']);
     
-    $comments = ( isset($_POST['update']) ) ? $db->escape($_POST['comments']) : $db->escape(RenderMan::preprocess_text($_POST['comments'], false, false));
+    $perms = $session->fetch_page_acl($filename, 'File');
+    $comments = ( isset($_POST['update']) ) ? $db->escape($_POST['comments']) : $db->escape(RenderMan::preprocess_text($_POST['comments'], false, false, true, $perms));
     $chartag = sha1(microtime());
     $urln = str_replace(' ', '_', $filename);