MediaWiki r8732 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r8731‎ | r8732 (on ViewVC)‎ | r8733 >
Date:13:17, 29 April 2005
Author:gabrielwicke
Status:old
Tags:
Comment:
allow ctype arg
Modified paths:

Diff [purge]

Index: branches/REL1_4/phase3/includes/Feed.php
@@ -162,7 +162,10 @@
163163 * @access private
164164 */
165165 function contentType() {
166 - return 'application/xml';
 166+ global $wgRequest;
 167+ $ctype = $wgRequest->getVal('ctype','application/xml');
 168+ $allowedctypes = array('application/xml','text/xml','application/rss+xml','application/atom+xml');
 169+ return (in_array($ctype, $allowedctypes) ? $ctype : 'application/xml');
167170 }
168171
169172 /**

Status & tagging log

  • 15:03, 12 September 2011 Meno25 (Talk | contribs) changed the status of r8732 [removed: ok added: old]
  • 14:06, 1 July 2009 ^demon (Talk | contribs) changed the status of r8732 [removed: new added: ok]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox