Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
ced7110a
Commit
ced7110a
authored
Sep 10, 2021
by
Christophe B Billheimer
Browse files
remove -o option from grep and use _egrep_o instead
parent
92f13eb8
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_1984hosting.sh
View file @
ced7110a
...
...
@@ -150,8 +150,8 @@ _1984hosting_login() {
_debug2 response
"
$response
"
if
_contains
"
$response
"
'"loggedin": true'
;
then
One984HOSTING_SESSIONID_COOKIE
=
"
$(
grep
-i
o
'se
ssionid=[^;]*;
'
"
$HTTP_HEADER
"
|
tr
-d
';'
)
"
One984HOSTING_CSRFTOKEN_COOKIE
=
"
$(
grep
-i
o
'
csrftoken=[^;]*;
'
"
$HTTP_HEADER
"
|
tr
-d
';'
)
"
One984HOSTING_SESSIONID_COOKIE
=
"
$(
grep
-i
'
^
se
t-cookie:
'
"
$HTTP_HEADER
"
| _egrep_o
'sessionid=[^;]*;'
|
tr
-d
';'
)
"
One984HOSTING_CSRFTOKEN_COOKIE
=
"
$(
grep
-i
'
^set-cookie:
'
"
$HTTP_HEADER
"
| _egrep_o
'csrftoken=[^;]*;'
|
tr
-d
';'
)
"
export
One984HOSTING_SESSIONID_COOKIE
export
One984HOSTING_CSRFTOKEN_COOKIE
_saveaccountconf_mutable One984HOSTING_SESSIONID_COOKIE
"
$One984HOSTING_SESSIONID_COOKIE
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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