]> git.proxmox.com Git - pve-apiclient.git/blobdiff - PVE/APIClient/LWP.pm
avoid harmful '<>' pattern, explicitly read from STDIN
[pve-apiclient.git] / PVE / APIClient / LWP.pm
index 20e3b56621dee188ed4cd129b2b96f31deb8ef5a..31df3c5929a4e9e9d9be4f6365d17d0c0f8b684b 100755 (executable)
@@ -146,7 +146,7 @@ sub manual_verify_fingerprint {
        "X509 SHA256 key fingerprint is $fingerprint.\n" .
        "Are you sure you want to continue connecting (yes/no)? ";
 
-    my $answer = <>;
+    my $answer = <STDIN>;
 
     my $valid = ($answer =~ m/^\s*yes\s*$/i) ? 1 : 0;