Skip to content

Commit

Permalink
GetDKAN#4054: proposal for saving embedded references
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn committed Nov 29, 2023
1 parent a3b6ef2 commit 865caea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/metastore/src/Reference/Referencer.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ private function getMimeType($distribution): string {
*/
private function checkExistingReference(string $property_id, $data, $raw) {
$storage = $this->storageFactory->getInstance($property_id);
if (!empty($raw) && is_string($raw)) {
if (!empty($raw) && is_string($raw) && mb_check_encoding($raw, 'ASCII')) {
$nodes = $storage->getEntityStorage()->loadByProperties([
'field_data_type' => $property_id,
'uuid' => $raw,
Expand Down

0 comments on commit 865caea

Please sign in to comment.