vezaynk / Sitemap-Generator-Crawler

PHP script to recursively crawl websites and generate a sitemap. Zero dependencies.
https://www.bbss.dev
MIT License
243 stars 93 forks source link

Relative URLs fix #28

Closed anatolinicolae closed 7 years ago

anatolinicolae commented 7 years ago

It looks like the tool doesn't consider query strings for relative URLs.

 [!] Checking index.php?case=pages&url=cookie 
 [!] index.php is relative, convert to absolute 
 [!] Result: index.php 
 [-] URL is not valid. Rejecting. 
vezaynk commented 7 years ago

Broken by #22, probably.

Do older versions work?

vezaynk commented 7 years ago

Mistake here: https://github.com/knyzorg/Sitemap-Generator-Crawler/blob/master/sitemap.php#L172

I improperly try to add a variable from parent scope. Fix coming tonight <3