Ver Fonte

fixing No ending delimiter '/'

clement há 1 ano atrás
pai
commit
c3219c0b37
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/models/ssh.php

+ 1 - 1
src/models/ssh.php

@@ -19,7 +19,7 @@ function get_ssh_keys($id) {
                 for ($i = 0; $i < $info[0]["sshpublickey"]["count"]; $i++) {
                     $key = $info[0]["sshpublickey"][$i];
                     $key_name = array();
-                    preg_match_all("/\S+", $key, $key_name);
+                    preg_match_all("/\S+/", $key, $key_name);
                     $keys[] = [$key_name[2] => $key];
                 }
                 return $keys;