2
0

Fix incorrect regex not allowing correct searches bsc#1232687

This commit is contained in:
Alice Brooks 2024-11-05 13:39:25 +00:00
parent 68fb781e88
commit cad7a00b2d
Signed by untrusted user: abrooks
GPG Key ID: 121CE3F61469DBDB
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 5 13:02:39 UTC 2024 - Alice Brooks <alice.brooks@suse.com>
- correct-container-search.patch: Fixes issues searching containers
bsc#1232687
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 9 17:49:45 UTC 2024 - Herbert Graeber <herbert@graeber-clan.de> Fri Aug 9 17:49:45 UTC 2024 - Herbert Graeber <herbert@graeber-clan.de>

View File

@ -28,6 +28,7 @@ Source11: node_modules.spec.inc
Source12: update_version.sh Source12: update_version.sh
%include %_sourcedir/node_modules.spec.inc %include %_sourcedir/node_modules.spec.inc
Patch10: load-css-overrides.patch Patch10: load-css-overrides.patch
Patch11: correct-container-search.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: appstream-glib BuildRequires: appstream-glib
Requires: cockpit-bridge >= 138 Requires: cockpit-bridge >= 138

View File

@ -0,0 +1,11 @@
--- a/src/ImageRunModal.jsx
+++ b/src/ImageRunModal.jsx
@@ -516,7 +516,7 @@ export class ImageRunModal extends React.Component {
}
// Strip out all non-allowed container image characters when filtering.
- let regexString = searchText.replace(/[^\w_.:-]/g, "");
+ let regexString = searchText.replace(/[^/\w_.:-]/g, "");
// Strip image registry option if set for comparing results for docker.io searching for docker.io/fedora
// returns docker.io/$username/fedora for example.
if (regexString.includes('/')) {