lat9 / sitemapxml

This Script generates an Sitemap as described sitemaps.org
Other
1 stars 2 forks source link

Inverse logic for token characters check #42

Closed marco-pm closed 3 months ago

marco-pm commented 5 months ago

https://github.com/lat9/sitemapxml/blob/d0e36377e0dd0576ff8500abb0e85aaf8aa86aac/sitemapXML/YOUR_Admin/sitemapxml.php#L115C1-L115C126

It checks if the token does not contain unallowed characters, so the condition should be preg_match('/[^\/0-9a-zA-Z_.-]/', SITEMAPXML_EXECUTION_TOKEN) === 0 (and not === 1)