Index: trunk/phase3/includes/RawPage.php |
— | — | @@ -145,14 +145,7 @@ |
146 | 146 | } |
147 | 147 | |
148 | 148 | function getRawText() { |
149 | | - global $wgUser, $wgOut, $wgRequest, $wgJsMimeType; |
150 | | - |
151 | | - /* Disable retrieving content pages as raw js/css */ |
152 | | - $dangerousTypes = array( $wgJsMimeType, 'text/css' ); |
153 | | - if ( in_array( $this->mContentType, $dangerousTypes ) && |
154 | | - !($this->mTitle->isCssOrJsPage() || $this->mTitle->isCssJsSubpage() ) ) |
155 | | - return '/* Page type not compatible with requested MIME type. */'; |
156 | | - |
| 149 | + global $wgUser, $wgOut, $wgRequest; |
157 | 150 | if($this->mGen) { |
158 | 151 | $sk = $wgUser->getSkin(); |
159 | 152 | $sk->initPage($wgOut); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -305,8 +305,6 @@ |
306 | 306 | * Don't show non-functional toolbar buttons on Opera 7 anymore |
307 | 307 | * (bug 9151) Fix relative subpage links with section fragments |
308 | 308 | * (bug 10560) Adding a space between category letter heading and "continues" |
309 | | -* Don't allow retrieving non-JavaScript/CSS pages with "text/css" or "text/javascript" |
310 | | - MIME types |
311 | 309 | * (bug 1629) Stop section edit links from being shoved down by other floats |
312 | 310 | * (bug 4650) Keep impossibly large/small counts off Special:Statistics |
313 | 311 | * (bug 10608) PHP notice when installing with PostgreSQL |