Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Prefix "ds:" #229

Open
tampm-dev opened this issue Jul 7, 2021 · 2 comments
Open

Remove Prefix "ds:" #229

tampm-dev opened this issue Jul 7, 2021 · 2 comments

Comments

@tampm-dev
Copy link

tampm-dev commented Jul 7, 2021

How do I remove the prefix "ds:" from my signature.
I tried attaching $objDSig = new XMLSecurityDSig(''); but this is not working for me.
Can someone help me?

@pablitouy
Copy link

$xml = file_get_contents('signed.xml');
$bodytag = str_replace("ds:", "", $xml);
$bodytag = str_replace(":ds", "", $bodytag);
unlink("1.xml");
$archivo = fopen("1.xml" , "a");
if ($archivo)
{
$datos=$bodytag;
fputs ($archivo, $datos);
}
fclose ($archivo);

@dev-guidolin
Copy link

$xml = file_get_contents('signed.xml'); $bodytag = str_replace("ds:", "", $xml); $bodytag = str_replace(":ds", "", $bodytag); unlink("1.xml"); $archivo = fopen("1.xml" , "a"); if ($archivo) { $datos=$bodytag; fputs ($archivo, $datos); } fclose ($archivo);

$objDSig = new XMLSecurityDSig("");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants