<?php
+$Page->api = $_SERVER['HTTP_ACCEPT'] == 'text/plain';
+
function userupload($input, $target = NULL, $filename = NULL)
{
switch ($input['error']) {
if (empty($input)) {
return;
}
- if ($User and $User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) {
+ if ($User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) {
return $input; # allow html input as is if privileged
}
$html = preg_replace(