Skip to content

Add jQuery Popup overlay#206

Merged
enthec-opensource merged 3 commits intoenthec:mainfrom
geoff-rmtech:jQueryPopupOverlay
Apr 29, 2025
Merged

Add jQuery Popup overlay#206
enthec-opensource merged 3 commits intoenthec:mainfrom
geoff-rmtech:jQueryPopupOverlay

Conversation

@geoff-rmtech
Copy link
Contributor

@geoff-rmtech geoff-rmtech commented Apr 28, 2025

jQuery Popup overlay is getting mis-identified as jQuery.

I'm afraid I don't have 10 sites - but here is one https://wallacelive.wallacecollection.org/eMP/eMuseumPlus.

image

53
],
"cpe": "cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:* ",
"cpe": "cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*",
Copy link
Contributor Author

@geoff-rmtech geoff-rmtech Apr 28, 2025

Choose a reason for hiding this comment

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

Looks like this is a typo, CPEs should not have spaces at the end.

"jquery",
"/jquery(?:-(\\d+\\.\\d+\\.\\d+))[/.-]\\;version:\\1",
"/(\\d+\\.\\d+\\.\\d+)/jquery[/.-][^u]\\;version:\\1"
"/(\\d+\\.\\d+\\.\\d+)/jquery(?!\\.popupoverlay\\.js)[/.-][^u]\\;version:\\1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prevents jQuery Popup Overlay from being mistakenly identified as jQuery.

"jquery",
"/jquery(?:-(\\d+\\.\\d+\\.\\d+))[/.-]\\;version:\\1",
"/(\\d+\\.\\d+\\.\\d+)/jquery[/.-][^u]\\;version:\\1"
"/(\\d+\\.\\d+\\.\\d+)/jquery(?!\\.popupoverlay\\.js)[/.-][^u]\\;version:\\1"
Copy link
Member

Choose a reason for hiding this comment

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

I believe the group you added needs to be a non capturing group with ?:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I’m not sure I follow. Are you referring to the part I added to the regex — (?!\\.popupoverlay\\.js) — on this line, or to the "jQuery Popup Overlay" object I added at line 1306?

@enthec-opensource enthec-opensource merged commit b3744d6 into enthec:main Apr 29, 2025
1 check 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.

2 participants