We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d8ce6 commit 817efbdCopy full SHA for 817efbd
webroot/panel/account.php
@@ -59,7 +59,11 @@
59
if (!preg_match("/^[0-9]+$/", $indexStr)) {
60
break;
61
}
62
- unset($keys[intval($indexStr)]); // remove key from array
+ $index = intval($indexStr);
63
+ if ($index >= count($keys)) {
64
+ break;
65
+ }
66
+ unset($keys[$index]); // remove key from array
67
$keys = array_values($keys);
68
69
$USER->setSSHKeys($keys, $OPERATOR); // Update user keys
0 commit comments