Lines 60-67
$xslt=<<"EOT";
Link Here
|
60 |
</xsl:stylesheet> |
60 |
</xsl:stylesheet> |
61 |
EOT |
61 |
EOT |
62 |
$xslt_file = mytempfile($xslt); |
62 |
$xslt_file = mytempfile($xslt); |
63 |
warning_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
63 |
warnings_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
64 |
qr/read_file called in XML::LibXSLT/, |
64 |
[ qr/read_file called in XML::LibXSLT/, qr/runtime error/ ], |
65 |
'Triggered security callback for read_file'; |
65 |
'Triggered security callback for read_file'; |
66 |
|
66 |
|
67 |
# Trigger write_file |
67 |
# Trigger write_file |
Lines 74-81
$xslt=<<"EOT";
Link Here
|
74 |
</xsl:stylesheet> |
74 |
</xsl:stylesheet> |
75 |
EOT |
75 |
EOT |
76 |
$xslt_file = mytempfile($xslt); |
76 |
$xslt_file = mytempfile($xslt); |
77 |
warning_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
77 |
warnings_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
78 |
qr/write_file called in XML::LibXSLT/, |
78 |
[ qr/write_file called in XML::LibXSLT/, qr/runtime error/ ], |
79 |
'Triggered security callback for write_file'; |
79 |
'Triggered security callback for write_file'; |
80 |
|
80 |
|
81 |
# Trigger read_net |
81 |
# Trigger read_net |
Lines 88-95
$xslt=<<"EOT";
Link Here
|
88 |
</xsl:stylesheet> |
88 |
</xsl:stylesheet> |
89 |
EOT |
89 |
EOT |
90 |
$xslt_file = mytempfile($xslt); |
90 |
$xslt_file = mytempfile($xslt); |
91 |
warning_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
91 |
warnings_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
92 |
qr/read_net called in XML::LibXSLT/, |
92 |
[ qr/read_net called in XML::LibXSLT/, qr/runtime error/ ], |
93 |
'Triggered security callback for read_net'; |
93 |
'Triggered security callback for read_net'; |
94 |
|
94 |
|
95 |
# Trigger write_net |
95 |
# Trigger write_net |
Lines 104-111
$xslt=<<"EOT";
Link Here
|
104 |
</xsl:stylesheet> |
104 |
</xsl:stylesheet> |
105 |
EOT |
105 |
EOT |
106 |
$xslt_file = mytempfile($xslt); |
106 |
$xslt_file = mytempfile($xslt); |
107 |
warning_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
107 |
warnings_like { $output= $engine->transform( "<ignored/>", $xslt_file ); } |
108 |
qr/write_net called in XML::LibXSLT/, |
108 |
[ qr/write_net called in XML::LibXSLT/, qr/runtime error/ ], |
109 |
'Triggered security callback for write_net'; |
109 |
'Triggered security callback for write_net'; |
110 |
|
110 |
|
111 |
# Check remote import (include should be similar) |
111 |
# Check remote import (include should be similar) |
112 |
- |
|
|