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

(RuntimeError) DTD not allowed: lol1 #90

Open
kianmeng opened this issue Aug 29, 2022 · 0 comments
Open

(RuntimeError) DTD not allowed: lol1 #90

kianmeng opened this issue Aug 29, 2022 · 0 comments
Assignees

Comments

@kianmeng
Copy link
Contributor

Tested on Elixir 1.13.4-otp-25 / Erlang 25.0.3.

git clone https://github.com/kbrw/sweet_xml
cd sweet_xml
mix deps.get
$ mix test
warning: use Mix.Config is deprecated. Use the Config module instead                             
  config/config.exs:4                                                                            
                                                                                                 
...........................................                                                      
17:38:50.785 [error] Process #PID<0.277.0> raised an exception
** (RuntimeError) DTD not allowed: lol1                                                 
    (sweet_xml 0.7.3) lib/sweet_xml/options.ex:55: anonymous fn/6 in SweetXml.Options.handle_dtd/2
    (xmerl 1.3.29) xmerl_scan.erl:1972: :xmerl_scan.scan_entity/2                                    
    (xmerl 1.3.29) xmerl_scan.erl:1693: :xmerl_scan.scan_markup_decl/2
    (xmerl 1.3.29) xmerl_scan.erl:1278: :xmerl_scan.scan_doctype3/3  
    (xmerl 1.3.29) xmerl_scan.erl:730: :xmerl_scan.scan_prolog/4     
    (xmerl 1.3.29) xmerl_scan.erl:571: :xmerl_scan.scan_document/2
    (xmerl 1.3.29) xmerl_scan.erl:294: :xmerl_scan.string/2           
                                                                                                 
17:38:50.788 [error] Process #PID<0.284.0> raised an exception  
** (SweetXml.DTDError) DTD not allowed: lol1                                                     
    (sweet_xml 0.7.3) lib/sweet_xml/options.ex:55: anonymous fn/6 in weetXml.Options.handle_dtd/2      
    (xmerl 1.3.29) xmerl_scan.erl:1972: :xmerl_scan.scan_entity/2
    (xmerl 1.3.29) xmerl_scan.erl:1693: :xmerl_scan.scan_markup_decl/2
    (xmerl 1.3.29) xmerl_scan.erl:1278: :xmerl_scan.scan_doctype3/3
    (xmerl 1.3.29) xmerl_scan.erl:730: :xmerl_scan.scan_prolog/4
    (xmerl 1.3.29) xmerl_scan.erl:571: :xmerl_scan.scan_document/2
    (xmerl 1.3.29) xmerl_scan.erl:294: :xmerl_scan.string/2  
....
17:38:50.893 [error] Process #PID<0.293.0> raised an exception
** (SweetXml.DTDError) no external entity allowed
    (sweet_xml 0.7.3) lib/sweet_xml/options.ex:23: anonymous fn/2 in SweetXml.Options.handle_dtd/2
    (xmerl 1.3.29) xmerl_scan.erl:1304: :xmerl_scan.fetch_and_parse/3
    (xmerl 1.3.29) xmerl_scan.erl:2002: :xmerl_scan.scan_entity_def/3
    (xmerl 1.3.29) xmerl_scan.erl:1964: :xmerl_scan.scan_entity/2
    (xmerl 1.3.29) xmerl_scan.erl:1693: :xmerl_scan.scan_markup_decl/2
    (xmerl 1.3.29) xmerl_scan.erl:1278: :xmerl_scan.scan_doctype3/3
    (xmerl 1.3.29) xmerl_scan.erl:730: :xmerl_scan.scan_prolog/4
    (xmerl 1.3.29) xmerl_scan.erl:571: :xmerl_scan.scan_document/2
    (xmerl 1.3.29) xmerl_scan.erl:294: :xmerl_scan.string/2
.......

Finished in 0.3 seconds (0.00s async, 0.3s sync)
16 doctests, 38 tests, 0 failures
@Shakadak Shakadak self-assigned this Oct 26, 2022
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

2 participants