Commit 0393d0c460ea7736cf65b5e257ec566a3000b295
1 parent
39212c09
KTC-177
"RSS feed appears wrong when launched from the 'Actions on this folder' when the folder has the internationalisation string as its name or the name of any of its subfolders." Fixed. Added a check for IE 6, and only send headers then. Committed By: Megan Watson Reviewed By: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8123 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
10 additions
and
4 deletions
rss.php
| ... | ... | @@ -74,10 +74,16 @@ if (!validateUser($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { |
| 74 | 74 | $user = DBAuthenticator::getUser($_SERVER['PHP_AUTH_USER'], array('id'=>'id',)); |
| 75 | 75 | $id = $user[$_SERVER['PHP_AUTH_USER']]['id']; |
| 76 | 76 | |
| 77 | - header('Content-Type: application/rss+xml; charset=utf-8;'); | |
| 78 | - header('Content-Disposition: inline; filename="rss.xml"'); | |
| 79 | - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); | |
| 80 | - header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); | |
| 77 | + if(OS_WINDOWS){ | |
| 78 | + $sReferrer = $_SERVER['HTTP_USER_AGENT']; | |
| 79 | + // Check if this is IE 6 | |
| 80 | + if(strstr($sReferrer, 'MSIE 6.0')){ | |
| 81 | + header('Content-Type: application/rss+xml; charset=utf-8;'); | |
| 82 | + header('Content-Disposition: inline; filename="rss.xml"'); | |
| 83 | + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); | |
| 84 | + header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); | |
| 85 | + } | |
| 86 | + } | |
| 81 | 87 | |
| 82 | 88 | if(KTUtil::arrayGet($_REQUEST, 'docId')){ // if a docId parameter is passed |
| 83 | 89 | // get document id from http request object | ... | ... |