trafficserver git commit: TS-3800: Fix bug in hostdb ui related to missing query

2015-07-28 Thread briang
Repository: trafficserver
Updated Branches:
  refs/heads/master 0cd1ef3ed -> fc133036c


TS-3800: Fix bug in hostdb ui related to missing query


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/fc133036
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/fc133036
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/fc133036

Branch: refs/heads/master
Commit: fc133036c2e4a6cd8d95c9432cd62e703a3303b1
Parents: 0cd1ef3
Author: Brian Geffon 
Authored: Tue Jul 28 20:20:57 2015 -0700
Committer: Brian Geffon 
Committed: Tue Jul 28 20:20:57 2015 -0700

--
 iocore/hostdb/HostDB.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc133036/iocore/hostdb/HostDB.cc
--
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 0d36fd6..984d137 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -2672,7 +2672,7 @@ register_ShowHostDB(Continuation *c, HTTPHdr *h)
   } else if (STR_LEN_EQ_PREFIX(path, path_len, "showall")) {
 int query_len = 0;
 const char *query = h->url_get()->query_get(&query_len);
-if (strstr(query, "json")) {
+if (query && query_len && strstr(query, "json")) {
   s->output_json = true;
 }
 Debug("hostdb", "dumping all hostdb records");



[2/9] trafficserver git commit: TS-3800: Fix bug in hostdb ui related to missing query

2015-07-30 Thread zwoop
TS-3800: Fix bug in hostdb ui related to missing query


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/fc133036
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/fc133036
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/fc133036

Branch: refs/heads/6.0.x
Commit: fc133036c2e4a6cd8d95c9432cd62e703a3303b1
Parents: 0cd1ef3
Author: Brian Geffon 
Authored: Tue Jul 28 20:20:57 2015 -0700
Committer: Brian Geffon 
Committed: Tue Jul 28 20:20:57 2015 -0700

--
 iocore/hostdb/HostDB.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc133036/iocore/hostdb/HostDB.cc
--
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 0d36fd6..984d137 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -2672,7 +2672,7 @@ register_ShowHostDB(Continuation *c, HTTPHdr *h)
   } else if (STR_LEN_EQ_PREFIX(path, path_len, "showall")) {
 int query_len = 0;
 const char *query = h->url_get()->query_get(&query_len);
-if (strstr(query, "json")) {
+if (query && query_len && strstr(query, "json")) {
   s->output_json = true;
 }
 Debug("hostdb", "dumping all hostdb records");