Skip to content

Commit 8db19d6

Browse files
committed
fix: Don't fail on regexp error when running from a path containin parenthesis
Closes #716
1 parent 379c7b0 commit 8db19d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ inventory:
66
* fix #700: Add TacticalRMM Remote_Mgmt support for MacOSX
77
* fix #711: Update Bitdefender AV support on Windows, and also update enable support
88
on Windows Server OS.
9+
* fix #716: Don't fail on regexp error while running from a user folder which contains
10+
a parenthesis
911

1012
netdiscovery/netinventory:
1113
* Skip Konica printers firmware with "Registered" set as version

lib/GLPI/Agent/HTTP/Client.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ sub _KeyChain_or_KeyStore_Export {
659659
# Convert each crt file to base64 encoded cer file and concatenate in certchain file
660660
File::Glob->require();
661661
foreach my $certfile (File::Glob::bsd_glob("$certdir/*")) {
662-
if ($certfile =~ m{^$certdir/(.*\.crt)$}) {
662+
if ($certfile =~ m{/([^/]+\.crt)$}) {
663663
getAllLines(
664664
command => "certutil -encode $1 temp.cer",
665665
logger => $logger

0 commit comments

Comments
 (0)