X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fupload-file.pl;h=d520b4d7e76f4673e5a099029dfc5c00e406597e;hb=235a9dfb7d259b67f0c4167b56c7a0b04275046d;hp=6b1fabbce3b2a2123fd0b79c2ca82693d78376c4;hpb=49e0a8fc786b61b56d15d77d79c180c60c595943;p=koha_fer diff --git a/tools/upload-file.pl b/tools/upload-file.pl index 6b1fabbce3..d520b4d7e7 100755 --- a/tools/upload-file.pl +++ b/tools/upload-file.pl @@ -18,6 +18,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; +#use warnings; FIXME - Bug 2505 # standard or CPAN modules used use IO::File; @@ -79,5 +80,5 @@ sub send_reply { my $reply = CGI->new(""); print $reply->header(-type => 'text/html'); # response will be sent back as JSON - print "{ status: '$upload_status', fileid: '$fileid' }"; + print '{"status":"' . $upload_status . '","fileid":"' . $fileid . '"}'; }