Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes "case-sensitive" URI matching for Disallow rules in robots.txt (#…
…46) * Fixes "case-sensitive" URI matching for Disallow rules in robots.txt Based on Issue #45 (Robots.txt "Disallow" URI matching should be case-sensitive) I removed the use of `strtolower` in `parseDisallow` to preserve the URI's case sensitivity. The issue was opened based on RFC standard by google which indicates: "The value of the disallow rule is case-sensitive." (Source: https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt?hl=en#disallow) --- I ran PHP-Unit and all tests passed since none were specifically testing case-sensitivity. I added test the_disallows_uri_check_is_case_sensitive to cover this issue. * Remove .idea files --------- Co-authored-by: Matthew Kesack <[email protected]>
- Loading branch information