View | Details | Raw Unified | Return to bug 9010
Collapse All | Expand All

(-)a/tools/quotes/quotes_ajax.pl (-2 / +1 lines)
Lines 46-52 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
46
46
47
my $params = $cgi->Vars; # NOTE: Multivalue parameters NOT allowed!!
47
my $params = $cgi->Vars; # NOTE: Multivalue parameters NOT allowed!!
48
48
49
print $cgi->header('application/json');
49
print $cgi->header('application/json; charset=utf-8');
50
50
51
if ($params->{'action'} eq 'add') {
51
if ($params->{'action'} eq 'add') {
52
    my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);');
52
    my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);');
53
- 

Return to bug 9010