浏览代码

removed newline from query def

E.Cannon 9 年之前
父节点
当前提交
6c701fadb7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      includes/blast_ui.form_per_program.inc

+ 2 - 2
includes/blast_ui.form_per_program.inc

@@ -424,8 +424,8 @@ your sequence headers include pipes (i.e.: | ) they adhere to '
     $job_data = variable_get('job_data', '');
     $seq_rows = explode(PHP_EOL, $seq_content);
     foreach($seq_rows as $row) {
-      if(strpos($row, ">") !== FALSE) {
-        $query_def[] = ltrim($row, ">");
+      if (strpos($row, ">") !== FALSE) {
+       $query_def[] = trim($row, "> \t\n\r\0\x0B");
       }
     }