Skip to content

Commit

Permalink
Removing bugs in XML output when title has '/' (slash) character.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrowicaksono committed Oct 8, 2014
1 parent b2a8af1 commit 8559d25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/detail.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public function MODSoutput()
$_xml_output = '<mods version="3.3" ID="'.$this->detail_id.'">'."\n";

// parse title
$this->record_detail['title'] = preg_replace('/\//i', '&#47;', $this->record_detail['title']);
$_title_sub = '';
$_title_statement_resp = '';
if (stripos($this->record_detail['title'], ':') !== false) {
Expand Down

0 comments on commit 8559d25

Please sign in to comment.