Skip to content

Commit 704706d

Browse files
Update taxonomy.php
given change in safeliteral, removed excess addslashes in taxonomy processing
1 parent 477a349 commit 704706d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

taxonomy/taxonomy.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class TaxonomyParser extends Bio2RDFizer{
4141
"filename" => "taxdmp.zip",
4242
"contents" => array(
4343
"names" => "names.dmp",
44-
"nodes" => "nodes.dmp",
45-
"citations" => "citations.dmp",
46-
"gencode" => "gencode.dmp",
47-
"division" => "division.dmp"
44+
#"nodes" => "nodes.dmp",
45+
#"citations" => "citations.dmp",
46+
#"gencode" => "gencode.dmp",
47+
#"division" => "division.dmp"
4848
),
4949
"file_url" => "ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdmp.zip"
5050
),
@@ -218,14 +218,14 @@ private function names(){
218218
$rel = parent::getVoc().str_replace(" ","-",$a[3]);
219219

220220
parent::addRDF(
221-
parent::triplifyString($taxid, $rel, addslashes($name)).
222-
parent::triplifyString($taxid, parent::getVoc()."unique-name", addslashes(utf8_encode($a[2])))
221+
parent::triplifyString($taxid, $rel, $name).
222+
parent::triplifyString($taxid, parent::getVoc()."unique-name", utf8_encode($a[2]))
223223
);
224224

225225
if($rel == "scientific-name") {
226226
parent::addRDF(
227-
parent::triplifyString($taxid, "dc:title", addslashes($name)).
228-
parent::triplifyString($taxid, "rdfs:label", addslashes($name))
227+
parent::triplifyString($taxid, "dc:title", $name).
228+
parent::triplifyString($taxid, "rdfs:label", $name)
229229
);
230230
}
231231

0 commit comments

Comments
 (0)