[Groonga-commit] droonga/drnbench at 1b416c6 [master] Use CGI.escape instead of obsolete URI.escape

Zurück zum Archiv-Index

SHIMODA Piro Hiroshi null+****@clear*****
Mon Oct 6 10:49:20 JST 2014


SHIMODA "Piro" Hiroshi	2014-10-06 10:49:20 +0900 (Mon, 06 Oct 2014)

  New Revision: 1b416c649fe29989c892fb41e1a2d3f74bb66790
  https://github.com/droonga/drnbench/commit/1b416c649fe29989c892fb41e1a2d3f74bb66790

  Message:
    Use CGI.escape instead of obsolete URI.escape

  Modified files:
    bin/drnbench-extract-searchterms

  Modified: bin/drnbench-extract-searchterms (+2 -2)
===================================================================
--- bin/drnbench-extract-searchterms    2014-10-04 20:55:00 +0900 (e4b711d)
+++ bin/drnbench-extract-searchterms    2014-10-06 10:49:20 +0900 (10ceaf7)
@@ -19,7 +19,7 @@ require "drnbench"
 require "ostruct"
 require "optparse"
 require "json"
-require "uri"
+require "cgi"
 
 options = OpenStruct.new
 options.column_index = 0
@@ -53,7 +53,7 @@ def sanitize_for_query(value)
 end
 
 def escape_for_param(value)
-  URI.escape(URI.escape(value.to_s), /[;&]/)
+  CGI.escape(value.to_s)
 end
 
 def output_column_value(select_result, column_index)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index