Skip to content
Snippets Groups Projects
Unverified Commit dfd99c4c authored by Alan Stanley's avatar Alan Stanley Committed by GitHub
Browse files

Issue 1806 - exploding colons. (#57)

parent a3cfb1fe
Branches
Tags 2.0.0
No related merge requests found
......@@ -57,6 +57,7 @@ class JsonLdSettingsForm extends ConfigFormBase {
$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";
}
......
......@@ -57,7 +57,7 @@ abstract class NormalizerBase extends SerializationNormalizerBase implements Den
*/
public static function escapePrefix($predicate, array $namespaces) {
$exploded = explode(":", $predicate);
$exploded = explode(":", $predicate, 2);
if (!isset($namespaces[$exploded[0]])) {
return $predicate;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment