plugins/SpecialUpdownload.php
changeset 81 d7fc25acd3f3
parent 80 cb7dde69c301
child 85 7c68a18a27be
--- a/plugins/SpecialUpdownload.php	Wed Aug 01 13:39:27 2007 -0400
+++ b/plugins/SpecialUpdownload.php	Sun Aug 05 15:58:50 2007 -0400
@@ -129,7 +129,7 @@
     $ext = substr($filename, strrpos($filename, '.'), strlen($filename));
     $flen = filesize($file['tmp_name']);
     
-    $comments = $db->escape(RenderMan::strip_php($_POST['comments']));
+    $comments = ( isset($_POST['update']) ) ? $db->escape($_POST['comments']) : $db->escape(RenderMan::preprocess_text($_POST['comments'], false, false));
     $chartag = sha1(microtime());
     $urln = str_replace(' ', '_', $filename);