Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
generateur-slogans
Commits
cf48ab5f
Verified
Commit
cf48ab5f
authored
Nov 07, 2017
by
Thibaut Broggi
Browse files
Fix GET arguments encoding
parent
1f719461
Pipeline
#1505
passed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
static/canvas.js
View file @
cf48ab5f
...
@@ -22,7 +22,7 @@ let params = {};
...
@@ -22,7 +22,7 @@ let params = {};
if
(
window
.
location
.
search
)
{
if
(
window
.
location
.
search
)
{
let
splitParams
=
window
.
location
.
search
.
split
(
'
?
'
)[
1
].
split
(
'
&
'
);
let
splitParams
=
window
.
location
.
search
.
split
(
'
?
'
)[
1
].
split
(
'
&
'
);
for
(
let
i
in
splitParams
)
{
for
(
let
i
in
splitParams
)
{
params
[
splitParams
[
i
].
split
(
'
=
'
)[
0
]]
=
decodeURIComponent
(
splitParams
[
i
].
split
(
'
=
'
)[
1
]);
params
[
splitParams
[
i
].
split
(
'
=
'
)[
0
]]
=
decodeURIComponent
(
splitParams
[
i
].
split
(
'
=
'
)[
1
])
.
replace
(
/
\+
/g
,
'
'
)
;
}
}
}
}
...
...
Thibaut Broggi
@Erneraude
mentioned in commit
497afc88
·
Nov 07, 2017
mentioned in commit
497afc88
mentioned in commit 497afc887ae15cfd4bd5201d7271b802d6cc2cac
Toggle commit list
Write
Preview
Supports
Markdown
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