Commit 4f28728c authored by mh's avatar mh
Browse files

correct pattern

parent b96e5cc8
Pipeline #5544 passed with stages
in 57 seconds
......@@ -38,7 +38,7 @@ function enarmorKey($content) {
fclose($pipes[1]);
fclose($pipes[2]);
if (proc_close($process) == 0) {
return str_replace("\n\n", "\n", preg_replace('/^(Comment|Version):.*/', '', str_replace('ARMORED FILE', 'PUBLIC KEY BLOCK', $armored_key)));
return str_replace("\n\n", "\n", preg_replace('/(Comment|Version):.*/', '', str_replace('ARMORED FILE', 'PUBLIC KEY BLOCK', $armored_key)));
} else {
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment