[Groonga-commit] groonga/groonga-query-log at 899e431 [master] Ignore no name command

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 26 11:15:32 JST 2015


Kouhei Sutou	2015-05-26 11:15:32 +0900 (Tue, 26 May 2015)

  New Revision: 899e43168e96e83dfdcdb8f66be3da6a6ab88f04
  https://github.com/groonga/groonga-query-log/commit/899e43168e96e83dfdcdb8f66be3da6a6ab88f04

  Message:
    Ignore no name command
    
    For example, "http://localhost:10041/" generates ">/" query log. It
    doesn't have command name.

  Modified files:
    lib/groonga/query-log/server-verifier.rb

  Modified: lib/groonga/query-log/server-verifier.rb (+2 -0)
===================================================================
--- lib/groonga/query-log/server-verifier.rb    2015-04-17 14:07:34 +0900 (93afbac)
+++ lib/groonga/query-log/server-verifier.rb    2015-05-26 11:15:32 +0900 (d020ff5)
@@ -160,6 +160,8 @@ module Groonga
         end
 
         def target_command_name?(name)
+          return false if name.nil?
+
           @target_command_names.any? do |name_pattern|
             flags = 0
             flags |= File::FNM_EXTGLOB if File.const_defined?(:FNM_EXTGLOB)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index