Hi all,
I just upgraded to Mantis 1.0.0a3 from 0.19.2. Previously when a user clicked on a jpg attachment the browser would automatically display it in a new window. The newest version pops open a open/save dialog instead.
I haven't changed any apache server or browser settings. So I am assuming the behavior change is due to the mantis upgrade?
1) Has anyone seen this?
2) How can I change the behavior back to the previous?
Thanks
Viewing vs. saving attachments in 1.0.0a3
Moderators: Developer, Contributor
Probably.
The Content-Disposition header was modified to be more correct to RFC2183. The line
header( 'Content-Disposition: filename="' . file_get_display_name( $v_filename ) . '"' );
was changed to:
header( 'Content-Disposition: attachment; filename="' . file_get_display_name( $v_filename ) . '"' );
The Content-Disposition header was modified to be more correct to RFC2183. The line
header( 'Content-Disposition: filename="' . file_get_display_name( $v_filename ) . '"' );
was changed to:
header( 'Content-Disposition: attachment; filename="' . file_get_display_name( $v_filename ) . '"' );
That's it.
Thank you. Reverted the header back to original.