Skip to content

[codex] apply dynamic contrast to text blocks#985

Open
chaochaoweb3 wants to merge 27 commits into
LinkStackOrg:betafrom
chaochaoweb3:codex/fix-text-block-contrast
Open

[codex] apply dynamic contrast to text blocks#985
chaochaoweb3 wants to merge 27 commits into
LinkStackOrg:betafrom
chaochaoweb3:codex/fix-text-block-contrast

Conversation

@chaochaoweb3

Copy link
Copy Markdown
Contributor

Fixes #966.

Summary

  • add the existing dynamic-contrast class to custom text block output
  • keep the existing button-text styling intact

Validation

  • git diff --check
  • php -l resources/views/components/pageitems/text-display.blade.php (not run: php is not installed in this local environment)

JulianPrieber and others added 27 commits December 10, 2024 16:12
* Refactor

* dependencies

* Exclude dev dependencies
This reverts commit 67e5146.
production dependencies
Three link management endpoints accept user-supplied link IDs
without verifying ownership, allowing any authenticated user to
modify other users' links:

- POST /studio/edit-link (saveLink): add ownership check before update
- POST /studio/sort-link (sortLinks): add user_id where clause
- GET /clearIcon/{id}: add existing link-id middleware to route

Co-authored-by: aazad <ali.azad@yahooinc.com>
strip_tags() allows <a> tags but does not remove HTML attributes,
allowing event handlers like onmouseover to pass through. The
description is rendered unescaped via {!! !!} in linkinfo.blade.php,
enabling stored XSS.

Add regex filters using word boundary matching to strip all on* event
handler attributes (both quoted and unquoted values) from the sanitized
description before saving to the database.

Co-authored-by: aazad <ali.azad@yahooinc.com>
…g#970)

The download link was generated as /admin/backups/?filename.zip
but the download handler checks $_GET['file'], so the handler
was never triggered. The browser navigated to the page instead
of downloading the file, causing a JS error.

Changed: url('admin/backups') . '/?' . $entry
To:      url('admin/backups') . '?file=' . $entry
@chaochaoweb3 chaochaoweb3 force-pushed the codex/fix-text-block-contrast branch from bef6b06 to 51ce3c2 Compare June 30, 2026 05:18
@chaochaoweb3 chaochaoweb3 marked this pull request as ready for review June 30, 2026 05:26
@chaochaoweb3

Copy link
Copy Markdown
Contributor Author

Rebased this onto the latest upstream main, corrected the commit author metadata, and marked it ready for review. I also triggered a fresh Scrutinizer run; it still reports repository-level analysis errored / tests failed with no artifacts exposed, and the Scrutinizer API shows the tracked main build is already failed. Local validation available here was git diff --check.

@JulianPrieber JulianPrieber changed the base branch from main to beta July 7, 2026 16:37
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.

background--dark not applied on custom text blocks

6 participants