Skip to content

docs: escape request values before printing them - #6

Merged
muhammetsafak merged 1 commit into
mainfrom
docs/fix-unsafe-examples
Nov 24, 2026
Merged

muhammetsafak merged 1 commit into
mainfrom
docs/fix-unsafe-examples

Conversation

@muhammetsafak

Copy link
Copy Markdown
Contributor

Summary

Documentation-only change: examples that could be copied into an application in an unsafe form are corrected.

  • Print Input values through htmlspecialchars() in the README and Quick Start examples and note that values are returned as-is
  • Use a non-secret locale parameter in the query-or-body recipe and point credentials to the Authorization header or the body

Notes

  • Only docs/ and README.md change; src/, tests and CI are untouched, and library behavior is unchanged.
  • wiki-sync.sh --check docs passes.

- Print `Input` values through `htmlspecialchars()` in the README and Quick Start examples and note that values are returned as-is
- Use a non-secret `locale` parameter in the query-or-body recipe and point credentials to the `Authorization` header or the body
@muhammetsafak
muhammetsafak merged commit f2793d4 into main Nov 24, 2026
9 checks passed
@muhammetsafak
muhammetsafak deleted the docs/fix-unsafe-examples branch November 24, 2026 05:09
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