X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Froutetextstring;fp=yarrg%2Fweb%2Froutetextstring;h=4202ce9a4881b69c2343ca00400f52105d926d2b;hb=9ad85b94399ad653e1d10fd18500a9e2205f032d;hp=c39d48bde187a9d86600454c4a1456c44a4d61f1;hpb=55c0517c2048155553c3e593125135ba83acd679;p=ypp-sc-tools.db-live.git diff --git a/yarrg/web/routetextstring b/yarrg/web/routetextstring index c39d48b..4202ce9 100644 --- a/yarrg/web/routetextstring +++ b/yarrg/web/routetextstring @@ -29,7 +29,8 @@ if ($format =~ 'json') { $r->content_type($ctype or $format); $output= sub { print to_json({ success => 1, - show => encode_entities($canontext), + show => length $canontext ? encode_entities($canontext) + : ' ', })}; $output_wrong= sub { print to_json({ success => 0,