From 46e09790ba571b5501008d1479c7ee9fb15d5c0f Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Mon, 18 Jun 2012 16:27:48 -0500 Subject: [PATCH] Fix download of attachments when editing canned responses --- include/staff/cannedreply.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/cannedreply.inc.php b/include/staff/cannedreply.inc.php index fa8e4615a..55e29db7d 100644 --- a/include/staff/cannedreply.inc.php +++ b/include/staff/cannedreply.inc.php @@ -77,7 +77,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); if($canned && ($files=$canned->getAttachments())) { echo '<div id="canned_attachments"><span class="faded">Uncheck to delete the attachment on submit</span><br>'; foreach($files as $file) { - $hash=$file['hash'].md5($file['id'].session_id()); + $hash=$file['hash'].md5($file['id'].session_id().$file['hash']); echo sprintf('<label><input type="checkbox" name="files[]" id="f%d" value="%d" checked="checked"> <a href="file.php?h=%s">%s</a> </label> ', $file['id'], $file['id'], $hash, $file['name']); -- GitLab