summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-04 20:09:28 +0100
committerYorhel <git@yorhel.nl>2010-12-04 20:09:28 +0100
commitfa4de2123498d3f240d09a12811af80b8af7fa72 (patch)
tree5efce241c38a66b14c5f95d49903e74410b9793a
parent14f690993eb8329f496277aa49b81ddc7e4cd1ae (diff)
API: Allow extra whitespace after "get .." command
-rw-r--r--ChangeLog3
-rw-r--r--data/docs/114
-rw-r--r--lib/POE/Filter/VNDBAPI.pm2
3 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fce0942..3fb2d17b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2.14 - ?
+ - API: Allow extra whitespace after "get .." command
+
2.14 - 2010-11-28
- Improved filter selection interface for the release and VN browser
- New release filters: voiced, animation and original language
diff --git a/data/docs/11 b/data/docs/11
index 4d13312c..a12bcbcb 100644
--- a/data/docs/11
+++ b/data/docs/11
@@ -904,6 +904,10 @@ however still required.<br />
This section lists the changes made in each version of the VNDB code.
Check out the <a href="/t/an">announcements board</a> for more information about updates.
</p>
+<b>2.15</b>
+<ul>
+ <li>Fixed a bug with the server not allowing extra whitespace after a "get .. " command</li>
+</ul>
<b>2.12</b>
<ul>
<li>Added "image" member to "get vn"</li>
diff --git a/lib/POE/Filter/VNDBAPI.pm b/lib/POE/Filter/VNDBAPI.pm
index ceb9ae2d..1d99e4e1 100644
--- a/lib/POE/Filter/VNDBAPI.pm
+++ b/lib/POE/Filter/VNDBAPI.pm
@@ -141,7 +141,7 @@ sub get_one {
else {
my ($value, $rest) = split /$WS+/, $str, 2;
$str = $rest;
- push @ret, $value;
+ push @ret, $value if length $value;
}
}