Skip to content
Browse files

escaping '#' characters in password in conf file

  • Loading branch information...
1 parent b6ae83c commit 542013fb83afb4fec457311cdccfc2ba9045240e @ryanb committed
Showing with 1 addition and 2 deletions.
  1. +1 −1 lib/thinking_sphinx/index.rb
  2. +0 −1 thinking-sphinx.gemspec
View
2 lib/thinking_sphinx/index.rb
@@ -70,7 +70,7 @@ def to_config(index, database_conf, charset_type)
type = #{db_adapter}
sql_host = #{database_conf[:host] || "localhost"}
sql_user = #{database_conf[:username]}
-sql_pass = #{database_conf[:password]}
+sql_pass = #{database_conf[:password].gsub('#', '\#')}
sql_db = #{database_conf[:database]}
#{"sql_sock = #{database_conf[:socket]}" unless database_conf[:socket].blank? }
View
1 thinking-sphinx.gemspec
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
-
if current_version >= 3 then
else
end

0 comments on commit 542013f

Please sign in to comment.
Something went wrong with that request. Please try again.