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

control characters in extracted URL's cause jsunpack to fail #19

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.provide html file containing url with control characters
ie: <script src="[insert any with control characters]">
2. run jsunpack

What is the expected output? What do you see instead?
Expect jsunpack to run without fatal error, instead I see error output 
including:
File "../../../urlattr.py", line 27
  if os.path.exists(input):
  ^ 
What version of the product are you using? On what operating system?
Latest on Linux Redhat

Please provide any additional information below.

Believe the solution is to wrap the call to "os.path.exists(input)" in a 
try/catch block. It doesn't appear to matter if this call fails as it only 
appears to be looking for the supplied file on the filesystem, and I don't know 
that such files can contain control characters.

Original issue reported on code.google.com by [email protected] on 23 Dec 2011 at 2:25

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

No branches or pull requests

1 participant