This commit has been accessed 731 times via Git panel.
commit f18b69e8c1743da3e7443573a34a42c33c8850d3
tree 1d004e01fe453f7a23fc69dd8f47a59689d2b721
parent 1d1e43e8f41d87c09f134f37542ff81cbebb3e9f
author Engels Antonio <engels@majcms.org> 1297843653 +0800
committer Engels Antonio <engels@majcms.org> 1297843653 +0800
Fix file attach href in filename
diff --git a/read.php b/read.php
index 23a90a3..2b33d7b 100644
--- a/read.php
+++ b/read.php
@@ -288,7 +288,7 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
if ($fileSize > 0) {
$fileSize = HumanReadableFilesize($fileSize);
- $fileAttachments = $fileAttachments . "\r\n<tr><td><a href=\"$filePath/$fileName\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$fileName\">$fileName</a><br>$fileSize</td></tr>\r\n";
+ $fileAttachments = $fileAttachments . "\r\n<tr><td><a href=\"$filePath/$fileName\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$filePath/$fileName\">$fileName</a><br>$fileSize</td></tr>\r\n";
}
else {
unlink("$filePath/$fileName");
tree 1d004e01fe453f7a23fc69dd8f47a59689d2b721
parent 1d1e43e8f41d87c09f134f37542ff81cbebb3e9f
author Engels Antonio <engels@majcms.org> 1297843653 +0800
committer Engels Antonio <engels@majcms.org> 1297843653 +0800
Fix file attach href in filename
diff --git a/read.php b/read.php
index 23a90a3..2b33d7b 100644
--- a/read.php
+++ b/read.php
@@ -288,7 +288,7 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
if ($fileSize > 0) {
$fileSize = HumanReadableFilesize($fileSize);
- $fileAttachments = $fileAttachments . "\r\n<tr><td><a href=\"$filePath/$fileName\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$fileName\">$fileName</a><br>$fileSize</td></tr>\r\n";
+ $fileAttachments = $fileAttachments . "\r\n<tr><td><a href=\"$filePath/$fileName\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$filePath/$fileName\">$fileName</a><br>$fileSize</td></tr>\r\n";
}
else {
unlink("$filePath/$fileName");