Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Illegal filename character while dumping frontpage service information #5

Description

@maaaaz

Hello dude,

First, I would like to thank you for your NTLM patch, that was really a needed one.

Second, I would like to report a bug : you are not filtering illegal filename chars when you dump frontage service information.
In the frontpage_service_listing function, line 382:

filename = "__service-list__.txt" + entry + ".html"
service_list = open(filename, 'a')

entry comes from the list on line 370 and contains bad chars such as ':' (colon).

Please filter any bad char in filename before attempting to write into them with this:

re.sub('[^\w\-_\. ]', '_', filename)

Best regards,
Thomas.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions