Skip to content

Commit

Permalink
Fix #3072: Attached file should be opened up in a new browser window.
Browse files Browse the repository at this point in the history
M core/file_api.php
- Add target="_blank" to the file attachment hyperlinks.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2124 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Mar 24, 2003
1 parent ad9853f commit 1a741b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/file_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: file_api.php,v 1.31 2003-02-26 11:12:08 vboctor Exp $
# $Id: file_api.php,v 1.32 2003-03-24 03:36:53 vboctor Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -56,7 +56,7 @@ function file_list_attachments ( $p_bug_id ) {
echo '<br />';
}

$t_href = "<a href=\"file_download.php?file_id=$v_id&amp;type=bug\">";
$t_href = "<a href=\"file_download.php?file_id=$v_id&amp;type=bug\" target=\"_blank\">";

echo $t_href;
print_file_icon ( file_get_display_name( $v_filename ) );
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -3,6 +3,7 @@ Mantis ChangeLog
2003.??.?? - 0.18.0a5

* Fix: Improved adherance to the XHTML standard.
* Fix #3072: Attached file should be opened up in a new browser window.

2003.03.22 - 0.18.0a4

Expand Down

0 comments on commit 1a741b7

Please sign in to comment.