Skip to content

Commit

Permalink
Issue 1806 - exploding colons. (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: ajstanley <alanjarlathstanle@gmail.com>
  • Loading branch information
ajstanley and ajstanley authored May 3, 2021
1 parent a3cfb1f commit dfd99c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Form/JsonLdSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$rdf_namespaces .= $namespace['prefix'] . '|' . $namespace['namespace'] . "\n";
}
$mapping_string = '';
ksort($mappings_from_hook);
foreach ($mappings_from_hook as $pref => $nspace) {
$mapping_string .= "$pref|$nspace \n";
}
Expand Down
2 changes: 1 addition & 1 deletion src/Normalizer/NormalizerBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function supportsDenormalization($data, $type, $format = NULL) {
*/
public static function escapePrefix($predicate, array $namespaces) {

$exploded = explode(":", $predicate);
$exploded = explode(":", $predicate, 2);
if (!isset($namespaces[$exploded[0]])) {
return $predicate;
}
Expand Down

0 comments on commit dfd99c4

Please sign in to comment.