question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] If an url contains an url...

See original GitHub issue

Hi!

While using the find_urls method I noticed the following:

https://bladomain.com/bla/?cid=74530889&h=bladomain.com

leads to

extractor.find_urls("https://bladomain.com/bla/?cid=74530889&h=bladomain.com")

['https://bladomain.com/bla/?cid=74530889&h=bladomain.com', 'https://bladomain.com/bla/?cid=74530889&h=bladomain.com']

is that supposed to happen? 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lipojacommented, Mar 14, 2019

This issue should be fixed. The longest URL containing all other URLs is returned.

1reaction
lipojacommented, Feb 27, 2019

Yes, I agree with you. It should return the longer URL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Error page isn't loading when URL contains "/ /"
URLs like "example.com/main/variable/variable" work just fine (redirects to example.com/index.php, loads main.php internally, and pulls the ...
Read more >
"Invalid URL" error if URL contains some symbols #10 - GitHub
I entered the URL with spaces into the ocDownloader app and it reports it as an invalid URL, so it is not caused...
Read more >
25090 - BASE tag ignored if original page URL contains http ...
the original source URL contains the BASE HREF URL as a substring. ... it works fine, no bug. ... then it's buggy and...
Read more >
"The URL contains an invalid path" error occurs when you try ...
Fixes a problem in which you receive "the URL contains an invalid path" error message when you try to access an Exchange 2013...
Read more >
Bug Fix: Error 404 when a URL contains a plus symbol (+ ...
I've found this problem normally occurs when you are using URL re-writing to turn ugly URLs like 'default.aspx?my+value' into pretty, human ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found