Lines 63-75
if (is_ajax()) {
Link Here
|
63 |
my ($tag, $js_reply); |
63 |
my ($tag, $js_reply); |
64 |
if ($tag = $input->param('test')) { |
64 |
if ($tag = $input->param('test')) { |
65 |
my $check = is_approved($tag); |
65 |
my $check = is_approved($tag); |
66 |
$js_reply = ( $check >= 1 ? 'success' : $check <= -1 ? 'failure' : 'indeterminate' ) . "_test('".uri_escape($tag)."');\n"; |
66 |
$js_reply = ( $check >= 1 ? 'success' : $check <= -1 ? 'failure' : 'indeterminate' ) . "_test('".uri_escape_utf8($tag)."');\n"; |
67 |
} |
67 |
} |
68 |
if ($tag = $input->param('ok')) { |
68 |
if ($tag = $input->param('ok')) { |
69 |
$js_reply = ( whitelist($operator,$tag) ? 'success' : 'failure') . "_approve('".uri_escape($tag)."');\n"; |
69 |
$js_reply = ( whitelist($operator,$tag) ? 'success' : 'failure') . "_approve('".uri_escape_utf8($tag)."');\n"; |
70 |
} |
70 |
} |
71 |
if ($tag = $input->param('rej')) { |
71 |
if ($tag = $input->param('rej')) { |
72 |
$js_reply = ( blacklist($operator,$tag) ? 'success' : 'failure') . "_reject('".uri_escape($tag)."');\n"; |
72 |
$js_reply = ( blacklist($operator,$tag) ? 'success' : 'failure') . "_reject('".uri_escape_utf8($tag)."');\n"; |
73 |
} |
73 |
} |
74 |
output_with_http_headers $input, undef, $js_reply, 'js'; |
74 |
output_with_http_headers $input, undef, $js_reply, 'js'; |
75 |
exit; |
75 |
exit; |
76 |
- |
|
|