Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Immerda Apps
wkd-frontend
Commits
4f28728c
Commit
4f28728c
authored
Jan 21, 2021
by
mh
Browse files
correct pattern
parent
b96e5cc8
Pipeline
#5544
passed with stages
in 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/wkd.php
View file @
4f28728c
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment