I can't remember clearly, but I think I didn't use any special category settings in the Manage extension groups section in the adminpanel. I think I just left it as is. But using the below code, solved the most issues.stephenhart wrote:So if in Posting > Manage Extension Groups, I set QuickTime files to Special Category None, only download is functional in the message.
If in Posting > Manage Extension Groups, I set QuickTime files to Special Category QuickTime media files, then a second link shows up in a post that reads "Play QuickTime," but it does nothing.
Code: Select all
#
#--[ FIND (in download.php, in function send_file_to_browser) ]--
#
// Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer.
header('Content-Type: ' . $attachment['mimetype']);
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie') !== false))
{
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
{
header('expires: -1');
}
}
else
{
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer.
if (strtolower(substr($attachment['real_filename'], -4)) == ".mp3")
{
header('Content-Type: audio/mpeg');
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'inline') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
}
else
if (strtolower(substr($attachment['real_filename'], -4)) == ".wma")
{
header('Content-Type: audio/x-ms-wma');
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'inline') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
}
else
if (strtolower(substr($attachment['real_filename'], -4)) == ".pdf")
{
header('Content-Type: application/pdf');
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'inline') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
}
else
{
header('Content-Type: ' . $attachment['mimetype']);
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie') !== false))
{
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
{
header('expires: -1');
}
}
else
{
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
}
}
You do realize this is an extremely old version, right? Since you're on an Intranet, security is a little bit less of a concern (but by no means a non-issue), but there are also many other bug fixes. For all you know, your issue has been addressed in the latest release.Mårten Berglund wrote:phpBB 3.0.RC1
Well, not extremely old, but old... It's a too big project to install the latest version for me, since I have done so many patches which will be overwritten. And the RC1 works fine for us.Eelke wrote:You do realize this is an extremely old version, right? Since you're on an Intranet, security is a little bit less of a concern (but by no means a non-issue), but there are also many other bug fixes. For all you know, your issue has been addressed in the latest release.Mårten Berglund wrote:phpBB 3.0.RC1
So, you are many security fixes behind?Mårten Berglund wrote:Well, not extremely old, but old... It's a too big project to install the latest version for me, since I have done so many patches which will be overwritten. And the RC1 works fine for us.Eelke wrote:You do realize this is an extremely old version, right? Since you're on an Intranet, security is a little bit less of a concern (but by no means a non-issue), but there are also many other bug fixes. For all you know, your issue has been addressed in the latest release.Mårten Berglund wrote:phpBB 3.0.RC1
Which of my issues have been addressed? I thought the XSS thing was in the way to do any similar changes to the official version of phpBB3.
I thought I made clear that my forum is not out on the Internet. It's behind htaccess walls. I promise, I won't blame you...lurttinen wrote:So, you are many security fixes behind?Mårten Berglund wrote:Well, not extremely old, but old... It's a too big project to install the latest version for me, since I have done so many patches which will be overwritten. And the RC1 works fine for us.Eelke wrote:You do realize this is an extremely old version, right? Since you're on an Intranet, security is a little bit less of a concern (but by no means a non-issue), but there are also many other bug fixes. For all you know, your issue has been addressed in the latest release.Mårten Berglund wrote:phpBB 3.0.RC1
Which of my issues have been addressed? I thought the XSS thing was in the way to do any similar changes to the official version of phpBB3.
I just hope no hacker or script kid will find your forum. Updates are not released for fun. They serve a purpose.
if nothing else, they fix problems.
From RC1 -> current, there are security fixes also.
Please take a note that this forum supports only the latest versions of phpBB.
If your forum gets compromised just because you thought you don't want to update, well... Don't blame us.
We had given you the fix but you choose to ignore it.
As per the devs, i don't have to quote them.