Browse Source

Fix temp files with spaces.

pull/153/head
Adam Vessey 13 years ago
parent
commit
0d7d650450
  1. 4
      api/fedora_item.inc

4
api/fedora_item.inc

@ -1118,7 +1118,9 @@ RDF;
$created_temp = TRUE; $created_temp = TRUE;
} }
$file_url = file_create_url($file); $parts = explode('/', $file);
$parts = array_map('rawurlencode', $parts);
$file_url = file_create_url(implode('/', $parts));
$toReturn = $this->modify_datastream_by_reference($file_url, $dsid, $label, $mime_type, $force, $logMessage); $toReturn = $this->modify_datastream_by_reference($file_url, $dsid, $label, $mime_type, $force, $logMessage);

Loading…
Cancel
Save