This is not the best way to handle json type but
I'm trying to clean this up a little in other patches
Bug: T178060
Change-Id: Ia6d0c4b8c1062966da48e3bebf057c621b39ba87
}
}
- $allowedCTypes = [ 'text/x-wiki', 'text/javascript', 'text/css', 'application/x-zope-edit' ];
+ $allowedCTypes = [
+ 'text/x-wiki',
+ 'text/javascript',
+ 'text/css',
+ 'application/x-zope-edit',
+ 'application/json'
+ ];
if ( $ctype == '' || !in_array( $ctype, $allowedCTypes ) ) {
$ctype = 'text/x-wiki';
}