Browse Source

Remove validation for tag and tag values. Remove additional output code for logMessage.

Risharde Ramnath 4 years ago
parent
commit
27de73ff9b

+ 0 - 7
tripal/includes/TripalImporter.inc

@@ -579,13 +579,6 @@ class TripalImporter {
     // Generate a translated message.
     $tmessage = t($message, $variables);
 
-    // If running from terminal / command line, output messages to terminal
-    // We should only allow this output for command line and not web page loads
-    // since we don't want this output on webpages.
-    if (defined('STDIN')) { 
-      echo "\n" . $tmessage;
-    } 
-
     // If we have a job then pass along the messaging to the job.
     if ($this->job) {
       $this->job->logMessage($message, $variables, $severity);

+ 0 - 16
tripal_chado/includes/TripalImporter/GFF3Importer.inc

@@ -1007,22 +1007,6 @@ class GFF3Importer extends TripalImporter {
 
       // Break apart each attribute into key/value pairs.
       $tag = preg_split("/=/", $attr, 2);
-
-      // Tag name validation checks based on GFF3 specifications 
-      preg_match('/.+[,=;].+/', $tag[0], $matches);
-      if (count($matches) > 0) {
-        throw new Exception(t('Attribute tag name !tagname contains invalid / 
-        unescaped characters', ['!tagname' => $tag[0]])
-        );
-      }
-
-      // Value validation checks based on GFF3 specifications
-      preg_match('/.+[,=;].+/', $tag[1], $matches);
-      if (count($matches) > 0) {
-        throw new Exception(t('Attribute value name !value contains invalid / 
-        unescaped characters', ['!value' => $tag[1]])
-        );
-      }
       
       // Multiple values of an attribute are separated by commas
       $tag_name = $tag[0];