Browse Source

Bug Fix: If users uploaded query files with spaces, the blast command would fail b/c of too many arguements; added quotes around query filename to fix this.

Lacey Sanderson 10 years ago
parent
commit
f0ac24a22c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/blast_ui.api.inc

+ 2 - 2
api/blast_ui.api.inc

@@ -127,7 +127,7 @@ function run_BLAST_tripal_job($program, $query, $database, $output_filestub, $op
 	$program = 	$blast_path . $program;
 	$blast_formatter_command = $blast_path .  'blast_formatter';
 
-  $blast_cmd = "$program -query $query -db $database -out $output_file -outfmt=11";
+  $blast_cmd = "$program -query '$query' -db '$database' -out '$output_file' -outfmt=11";
   if (!empty($options)) {
     foreach ($options as $opt => $val) {
       print "\t$opt: $val\n";
@@ -271,4 +271,4 @@ function get_blastdb_linkout_regex($node, $options = array()) {
   }
 
   return $regex;
-}
+}