git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9891a6e
)
JSJSONArrayParser: ignore garbage at end of JSON string
author
Ralf Ertzinger
<ralf@skytale.net>
Sat, 12 Apr 2014 16:31:46 +0000
(18:31 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sat, 12 Apr 2014 16:31:46 +0000
(18:31 +0200)
videosite/JSJSONArrayParser.pm
patch
|
blob
|
history
diff --git
a/videosite/JSJSONArrayParser.pm
b/videosite/JSJSONArrayParser.pm
index
82c67f3
..
7a3b755
100644
(file)
--- a/
videosite/JSJSONArrayParser.pm
+++ b/
videosite/JSJSONArrayParser.pm
@@
-24,8
+24,10
@@
sub parse {
my $self = shift;
my $s = shift;
my $j = JSON->new();
+ my $content;
- return $j->loose->allow_barekey()->allow_singlequote()->decode($s);
+ ($content, undef) = $j->loose->allow_barekey()->allow_singlequote()->decode_prefix($s);
+ return $content;
}
1;