Closed shubhampathak closed 4 years ago
Hm. I actually don't remember anymore. It is several years ago that I wrote this code. Following the links you posted it seems to make sense to disable it. Do you mind to create a pull request?
Hi Christian, thanks for the quick response. Sure! creating a Pull Request.
fixed by #56
I pushed a new version
@ckruse Hi Christian, found
NOENT
in bothrbLibXMLParser.rb
andrbNokogiriParser.rb
Passing NOENT as parsing option is risky.Passing
NOENT
(which is used to substitute entities) as parsing options permits processing of entities, including both regular and external. That meansNONET
andNODTDLOAD
will be of no use if NOENT is there.Take a look at this: https://github.com/sparklemotion/nokogiri/issues/1582#issuecomment-562180275
This is why Nokogiri team strictly suggests using default parsing options: DEFAULT_XML = RECOVER | NONET