Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
7b216e61
Commit
7b216e61
authored
Nov 06, 2017
by
Clément OUDOT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 0 value in setHiddenFormValue (#1328)
parent
33c6caa5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
+4
-3
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
View file @
7b216e61
...
...
@@ -582,7 +582,7 @@ sub setHiddenFormValue {
$val
=
''
unless
defined
$val
;
# Store value
if
(
$val
or
!
(
$val
&
~
$val
)
)
{
if
(
defined
$val
or
!
(
$val
&
~
$val
)
)
{
$key
=
$prefix
.
$key
;
$val
=~
s/\+/%2B/g
;
$req
->
{
portalHiddenFormValues
}
->
{
$key
}
=
$val
;
...
...
@@ -606,10 +606,11 @@ sub getHiddenFormValue {
$key
=
$prefix
.
$key
;
# Get value
if
(
my
$val
=
$req
->
param
(
$key
)
)
{
my
$val
=
$req
->
param
(
$key
);
if
(
defined
$val
)
{
$val
=
decode_base64
(
$val
)
if
$base64
;
return
$val
;
$self
->
logger
->
debug
("
Hidden value
$val
found for key
$key
");
return
$val
;
}
# No value found
...
...
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