|
1 | 1 | class LibXmlRubyXXE < ApplicationController |
2 | 2 |
|
3 | 3 | content = params[:xml] |
4 | | - LibXML::XML::Document.string(content, { options: 2, encoding: 'utf-8' }) |
5 | | - LibXML::XML::Document.file(content, { options: LibXML::XML::Options::NOENT }) |
6 | | - LibXML::XML::Document.io(content, { options: XML::Options::NOENT }) |
7 | | - LibXML::XML::Parser.string(content, { options: 2 }) |
8 | | - LibXML::XML::Parser.file(content, { options: 3 }) |
9 | | - LibXML::XML::Parser.io(content, { options: 2 }) |
| 4 | + LibXML::XML::Document.string(content, { options: 2 | 2048, encoding: 'utf-8' }) |
| 5 | + LibXML::XML::Document.file(content, { options: LibXML::XML::Options::NOENT | 2048}) |
| 6 | + LibXML::XML::Document.io(content, { options: XML::Options::NOENT| 2048 }) |
| 7 | + LibXML::XML::Parser.string(content, { options: 2 | 2048 }) |
| 8 | + LibXML::XML::Parser.file(content, { options: 3 | 2048 }) |
| 9 | + LibXML::XML::Parser.io(content, { options: 2 | 2048}) |
10 | 10 |
|
11 | | - XML::Document.string(content, { options: 2 }) |
12 | | - XML::Parser.string(content, { options: 2 }) |
| 11 | + XML::Document.string(content, { options: 2 | 2048 }) |
| 12 | + XML::Parser.string(content, { options: 2 | 2048 }) |
13 | 13 |
|
14 | 14 | LibXML::XML::Parser.file(content, { options: 2048 }) # OK |
15 | 15 |
|
|
0 commit comments