Skip to content

Commit

Permalink
Merge pull request #81 from delphaber/master
Browse files Browse the repository at this point in the history
Fix #79
  • Loading branch information
delphaber committed Apr 9, 2014
2 parents 3df9fed + c93b15f commit 4f17cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/wordmove/deployer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def mysql_dump_command(options, save_to_path)
def mysql_import_command(dump_path, options)
arguments = [ "mysql" ]
arguments << "--host=#{options[:host]}" if options[:host].present?
arguments << "--port=#{options[:port]}" if options[:port].present?
arguments << "--user=#{options[:user]}" if options[:user].present?
arguments << "--password=#{options[:password]}" if options[:password].present?
arguments << "--database=#{options[:name]}"
Expand Down
2 changes: 2 additions & 0 deletions lib/wordmove/deployer/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def remote_put(thing, path)
end

def escape_php(string)
return '' unless string

# replaces \ with \\
# replaces ' with \'
string.gsub('\\','\\\\\\').gsub(/[']/, '\\\\\'')
Expand Down

0 comments on commit 4f17cfa

Please sign in to comment.