-
Notifications
You must be signed in to change notification settings - Fork 262
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
URL can't contain control characters [FIX] #33
Comments
i updated but got the following error: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred:
File "/usr/lib/python3.9/socket.py", line 954, in getaddrinfo During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred:
File "/usr/lib/python3.9/urllib/request.py", line 517, in open |
I have stored my changes on my repository, maybe you can try that https://github.com/erikandri/CMSMap.git |
@erikandri Great job, man. You really fixed it. It ran smoothly, without errors!! Congratulations |
CMSmap/cmsmap/lib/requester.py
Line 29 in 59dd0e2
When i run CMSMap and it's checking for Plugins, there is plugin path that have space in their name then program throw an exception "http.client.InvalidURL: URL can't contain control characters.", so i debug the line like below
Before:
self.response = urllib.request.urlopen(self.req, context=self.ctx)
self.response = urllib.request.urlopen(self.req)
After:
from urllib import parse
self.response = urllib.request.urlopen(url=parse.quote_plus(self.req.get_full_url(), safe=':/'), context=self.ctx)
self.response = urllib.request.urlopen(url=parse.quote_plus(self.req.get_full_url(), safe=':/'))
There is actually other 5 self.response, you can update all of them
The text was updated successfully, but these errors were encountered: