Open feader opened 2 years ago
If I have understood your problem correctly; that you would like to have
// Sign using SHA-256
$objDSig->addReference(
$doc,
XMLSecurityDSig::SHA256,
['http://www.w3.org/2000/09/xmldsig#enveloped-signature'],
['force_uri' => true] // <----- this causes $force_uri to be true, which in turn results in the attribute URI="" being added
);
https://github.com/robrichards/xmlseclibs/blob/master/src/XMLSecurityDSig.php#L662 in XMLSecurityDSig.php, function addRefInternal, when (! $node instanceof DOMDocument) = false , it has no value, so make the URI='' is not exist , it show '', in my scene, i need it to be ''
so I add else for it![image](https://user-images.githubusercontent.com/22908871/134478687-a4eff272-8fcd-4ce4-83f2-7c1a6ca20327.png)
what i need now is work