From 11abb3e1f8e260bfaa28a2dcd4534e228d4c2fbc Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 22 Dec 2017 16:42:07 +0100 Subject: [PATCH] LSattr_html :: ssh_key : fix regex --- public_html/includes/class/class.LSformElement_ssh_key.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_ssh_key.php b/public_html/includes/class/class.LSformElement_ssh_key.php index 97e793fd..74175dee 100644 --- a/public_html/includes/class/class.LSformElement_ssh_key.php +++ b/public_html/includes/class/class.LSformElement_ssh_key.php @@ -60,7 +60,7 @@ class LSformElement_ssh_key extends LSformElement { $values_txt = array(); foreach ($this -> values as $value) { - if (ereg('^ssh-([a-z]+) (.*)== (.*)$',$value,$regs)) { + if (preg_match('/^ssh-([a-z0-9]+) +([^ ]+) +(.*)$/',$value,$regs)) { $values_txt[] = array( 'type' => $regs[1], 'shortTxt' => substr($regs[2],0,10),