Skip to content

Fix. Scan. Show unknown accordion. - #709

Merged
svfcode merged 2 commits into
fixfrom
upd-scan-to-show-unknown
Aug 10, 2026
Merged

Fix. Scan. Show unknown accordion.#709
svfcode merged 2 commits into
fixfrom
upd-scan-to-show-unknown

Conversation

@svfcode

@svfcode svfcode commented Aug 10, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses “Unknown” scan results visibility by normalizing how the source field is stored during filesystem analysis and by expanding “Unknown” SQL filters to include legacy rows where source was saved as an empty string.

Changes:

  • Treat scan results with source = '' the same as source IS NULL when building the “Unknown” list queries.
  • Write source as NULL (instead of '') for files with an extension, and keep BINARY for files without an extension.
  • Update ON DUPLICATE KEY UPDATE to only overwrite source when the existing row has NULL/empty source.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lib/CleantalkSP/SpbctWP/Scanner/Stages/Repositories/UnknownRepository.php Expands “Unknown” repository query to include both NULL and empty source.
lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php Normalizes inserted source values (NULL vs BINARY) and updates duplicate-key merge logic for source.
lib/CleantalkSP/SpbctWP/Scanner/Helper.php Updates category “unknown” WHERE clause to include empty-string source rows.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@svfcode
svfcode merged commit 6e4eeb2 into fix Aug 10, 2026
3 checks passed
@svfcode
svfcode deleted the upd-scan-to-show-unknown branch August 12, 2026 06:02
Glomberg added a commit that referenced this pull request Aug 17, 2026
* Mod. Settings. Moving Vulnerability Check settings to React

* Mod. Settings. Moving Admin Bar settings to React

* Fix jest config, add test for settings

* Jest test for firewall and scanner

* Mod. Settings. Moving Miscellaneous settings to React

* fix php, js test errors

* fix php, js test errors

* New. UserPassCheck. Debugging functionality using the cron task launch button

* Mod. UserPassCheck. Rendering the status of the check and its results

* Fix js eslint errors, upd common libs

* Fix. FW. Improve logs.

* Mod. PSCTab. Caching data for fast content display

* Upd. Settings. Add BFP option. (#694)

* Upd. Settings. Add BFP option.

* make desc dinamic

* fix cp

* fix cp

* Upd. Firewall. Improve BFP module to protect woo login. (#693)

* Upd. Firewall. Improve BFP module to protect woo login.

* upd

* fix cp

* fix cp

* fix psalm

* fix cp

* fix cp

* Security Firewall UI update

https://app.doboard.com/1/task/38882

* Upd version 2.185.99-dev

* Upd version 2.185.99-fix

* UI update. Renamed the account creation button and description. Add new params in request

https://app.doboard.com/1/task/53201

* Fix. Scan. Improve surface iterator to filter not available dirs. (#705)

* Fix. Scan. Improve surface iterator to filter not available dirs.

* fix cp

* Upd. Scan. Update skip policy. (#704)

* Upd. Scan. Update skip policy.

* fix cp

* Mod. PSCTab. Filtering by installed plug-ins, PC search, active PSC filtering

* Fix. PSCTab. Editing the caching logic and general output in accordance with the available cache data

* Fix. Integrations. Update upload checker verify from ACF.

* Fix. PSCTab. Edits for the formation of values ​​for the total number of PSCs, edits for comments

* Fix. Scan. Show unknown accordion. (#709)

* Fix. Scan. Show unknown accordion.

* fix cp

* File synchronization

https://app.doboard.com/1/task/38991

* Fix. Remote Calls. Wrong response fixed. (#707)

* Mod. Settings. Transferring settings to React

* Fix. FW. Improve statement on WAF module to prevent false positive. (#710)

* Fix. FW. Improve statement on WAF module to prevent false positive.

* upd

* Fix errors

* Jest test

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix copilot review

* Sync branch

* Fix eslint

* Fix. Settings. Refactoring and deleting old code

* Fix. Settings. Improve curl wrapper.

* Fix. Settings. Auto cure setting fixed.

* Fix. Admin banners. Critical files banner fixed. (#712)

* Version: 2.186 and changelog updated.

* Fix. Readme. WP 7.1 compatibility added.

* Upd. Readme. Changelog updated.

* Upd. Readme. Changelog updated.

* Fix. Code. Bundle rebuilt.

* Fix. Upload checker. Check files during meadia uploading fixed. (#713)

* Fix. Code. Unused code removed.

* Upd.  Readme. Changelog updated.

---------

Co-authored-by: AntonV1211 <antonV1211@yandex.ru>
Co-authored-by: svfcode <svfcode@mail.ru>
Co-authored-by: Aleksandr Banins <alexander.b@cleantalk.org>
Co-authored-by: AntonV1211 <39616556+AntonV1211@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants