Skip to content

Fix validation findings - #2

Merged
bonelifer merged 1 commit into
mainfrom
validation-fixes
Oct 20, 2026
Merged

bonelifer merged 1 commit into
mainfrom
validation-fixes

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Fixes the findings from a validation pass on 1.0.0-dev (7a5d2e5), run with the standard phpBB validation prompt.

  • Hard-coded text (valdeny): the RSS discovery links in the page head had (RSS) written into their titles. They now use the FEEDLINKS_RSS language string, and the language strings in those title attributes are escaped.
  • Hard-coded text (valdeny): if the RSS conversion failed, phpBB's error page would show the converter's English exception message. The controller now catches it and shows a language string (FEEDLINKS_RSS_ERROR) with a 500 status.
  • The feed link titles escape their language string first and then add the forum name, which phpBB has already escaped, so names like "Tom & Jerry" aren't escaped twice.
  • Removed template variables that no template used (U_FEEDLINKS_ATOM, and the forum row URL variables), and added links::NONE in place of a bare 0.
  • Updated the link wording quoted in docs/events/forumlist_body_forum_desc_after.txt, the request filed as PHPBB-17748.

Claude ran the unit tests (44 pass on phpBB 3.3.x and master), EPV for 3.3 and 4.0 (no Fatal or Error), php -l, the template accessibility check, and both seed-forum test boards (RSS feeds, head links, and link titles with a forum named "Tom & Jerry").


Investigated and written by Claude on behalf of William Jacoby (bonelifer).

- Head link titles use the FEEDLINKS_RSS language string instead of a
  hard-coded "(RSS)", and escape their language strings.
- A failed RSS conversion shows a language-string error (500) instead of
  the converter's English exception message.
- The feed link titles escape their language string before adding the
  already-escaped forum name.
- Remove template variables no template used, and use links::NONE
  instead of a bare 0.
- Update the quoted link wording in the template event request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 4edf882 into main Oct 20, 2026
57 checks passed
@bonelifer
bonelifer deleted the validation-fixes branch October 20, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant