Skip to content

v1.10.2#284

Merged
TiTidom-RC merged 5 commits into
betafrom
dev
Jun 22, 2026
Merged

v1.10.2#284
TiTidom-RC merged 5 commits into
betafrom
dev

Conversation

@TiTidom-RC

Copy link
Copy Markdown
Owner

This pull request introduces improvements to file handling, workflow automation, and JavaScript code checks. The most significant changes include enhanced filename sanitization for custom sound uploads, the addition of a JavaScript syntax checking workflow, and refined workflow triggers to limit checks to relevant files. The plugin version is also incremented to reflect these updates.

File handling improvements:

  • Improved the sanitization process for uploaded custom sound filenames in ttscast.ajax.php by using sanitizeAccent, converting to lowercase, refining allowed characters, and trimming unwanted underscores or hyphens. This reduces the risk of invalid or unsafe filenames.

Workflow automation enhancements:

  • Added a new GitHub Actions workflow (js-check.yml) to automatically check JavaScript syntax on pull requests targeting the beta branch, ensuring code quality for .js files.
  • Updated existing workflows (checkPHP.yml, checkPHPCompat.yml, checkPython.yml) to only run on pull requests that modify relevant file types (.php or .py), reducing unnecessary runs and improving CI efficiency. [1] [2] [3]

Versioning:

  • Bumped the plugin version in info.json from 1.10.1 to 1.10.2 to reflect these changes.

Limit CI runs by adding path filters to pull_request triggers: PHP workflows now only run for '**/*.php' and Python checks run for 'resources/**/*.py'. Add a new js-check workflow that runs on PRs to beta for '**/*.js', sets up Node 22, and runs `node --check` on JS files (excluding node_modules) to catch syntax errors. This reduces unnecessary workflow executions and introduces basic JavaScript syntax validation.
Add workflow_dispatch to checkPHP, checkPHPCompat, checkPython, and js-check workflows so they can be triggered manually from the Actions UI. Existing triggers (branch/path filters) remain unchanged.
Update the GitHub Actions workflow (.github/workflows/js-check.yml) to use actions/setup-node@v5 instead of @v4. The node-version remains '22'; this change moves the workflow to the newer setup-node major release.
Tighten filename sanitization for uploaded custom sounds: apply sanitizeAccent(), transliterate to ASCII, convert to lowercase, replace non-alphanumeric/._- characters with underscores, and strip leading/trailing underscores or hyphens before the extension. Keeps existing validation to prevent empty filename bases after cleaning. Also increment pluginVersion to 1.10.2.
@TiTidom-RC
TiTidom-RC merged commit f5a20a4 into beta Jun 22, 2026
4 checks passed
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