#6021 - Array to string conversion in sources/hooks/systems/sitemap/page.php on line 101 when editing a Wiki page
| Identifier | #6021 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Array to string conversion in sources/hooks/systems/sitemap/page.php on line 101 when editing a Wiki page |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta4 |
| Addon | core |
| Description | See private comment (made private as it contains sensitive information from a person's server) |
| Steps to reproduce | |
| Additional information | Telemetry 2,911 |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
The sitemap nodes were only following redirects one-level deep. If a redirect of a redirect were in place, the node would still receive redirect details, and the subsequent end() call would later result in an array to string error because $path would be an array.
This fix makes sitemap look up to 10 levels deep with redirects, and bail out on error if it exceeds 10 levels.
This fix has not been tested because I could not actually replicate this problem.