mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSattr_html :: ssh_key : fix regex
This commit is contained in:
parent
2c79e92cbf
commit
11abb3e1f8
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class LSformElement_ssh_key extends LSformElement {
|
||||||
|
|
||||||
$values_txt = array();
|
$values_txt = array();
|
||||||
foreach ($this -> values as $value) {
|
foreach ($this -> values as $value) {
|
||||||
if (ereg('^ssh-([a-z]+) (.*)== (.*)$',$value,$regs)) {
|
if (preg_match('/^ssh-([a-z0-9]+) +([^ ]+) +(.*)$/',$value,$regs)) {
|
||||||
$values_txt[] = array(
|
$values_txt[] = array(
|
||||||
'type' => $regs[1],
|
'type' => $regs[1],
|
||||||
'shortTxt' => substr($regs[2],0,10),
|
'shortTxt' => substr($regs[2],0,10),
|
||||||
|
|
Loading…
Reference in a new issue