Skip to content

fix #32 修复站点标签输出 PHP 标签风险#51

Merged
pbootcmspro merged 1 commit into
masterfrom
fix/origin-32-site-label-php-tag
Jun 27, 2026
Merged

fix #32 修复站点标签输出 PHP 标签风险#51
pbootcmspro merged 1 commit into
masterfrom
fix/origin-32-site-label-php-tag

Conversation

@pbootcmspro

Copy link
Copy Markdown
Owner

Summary

Fixes #32.

This patch hardens the site label output path against decoded PHP open tags in sitecopyright / sitestatistical content.

Changes

  • Add sanitizePhpOpenTag() to escape <?php, <?=, and <? before final site label output.
  • Preserve the existing filter_html(decode_string(...)) flow for statistical.
  • Keep copyright HTML compatibility by only escaping PHP open tags instead of applying broad HTML filtering.

Verification

  • php -l apps/home/controller/ParserController.php

@pbootcmspro pbootcmspro self-assigned this Jun 26, 2026
@pbootcmspro pbootcmspro added bug Something isn't working needs review Pull request is ready for maintainer review labels Jun 27, 2026
@pbootcmspro

Copy link
Copy Markdown
Owner Author

/LGTM

@github-actions github-actions Bot added ready to merge Pull request has been reviewed and is ready to merge and removed needs review Pull request is ready for maintainer review labels Jun 27, 2026
@pbootcmspro pbootcmspro merged commit 4ba0707 into master Jun 27, 2026
@pbootcmspro pbootcmspro deleted the fix/origin-32-site-label-php-tag branch June 27, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready to merge Pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

There is a vulnerability known as CVE-2026-36239

1 participant