diff options
author | Christoph Helma <helma@in-silico.de> | 2009-09-11 23:55:32 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-09-11 23:55:32 +0200 |
commit | abd0e1ae7b933cbd1c1907dd9e7f1ce1782cf743 (patch) | |
tree | bf394da92dca45b292aa4635dc097c26e63bfab6 /lib/algorithm.rb | |
parent | 59249a0febc2f90cd1643ddb7e3baa68e3f49065 (diff) |
InChI escaping fixed
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r-- | lib/algorithm.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb index 33731af..7007e3a 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -15,7 +15,9 @@ module OpenTox end def self.weighted_tanimoto(dataset1,compound1,dataset2,compound2) - RestClient.get URI.encode(File.join(@@config[:services]["opentox-dataset"], 'algorithm/weighted_tanimoto/dataset',dataset1.name,'compound',compound1.inchi,'dataset',dataset2.name,'compound',compound2.inchi)) + # URI.escape does not work here + uri = File.join(@@config[:services]["opentox-dataset"], 'algorithm/weighted_tanimoto/dataset',CGI.escape(dataset1.name),'compound',CGI.escape(compound1.inchi),'dataset',CGI.escape(dataset2.name),'compound',CGI.escape(compound2.inchi)) + RestClient.get uri end end |