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
fusiondirectory
fusiondirectory-plugins
Commits
b041f773
Commit
b041f773
authored
Jan 15, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Jan 15, 2014
Browse files
Fixes:
#2945
Improved samba munged dial encoding
parent
927f957b
Changes
1
Hide whitespace changes
Inline
Side-by-side
samba/personal/samba/class_sambaMungedDial.inc
View file @
b041f773
...
...
@@ -161,16 +161,16 @@ class sambaMungedDial
$counter
=
0
;
$result_tmp
=
""
;
foreach
(
$params
as
$paramName
=>
$paramValue
)
{
/* String parameter? */
if
(
$paramValue
===
''
)
{
continue
;
}
$isString
=
FALSE
;
if
(
in_array
(
$paramName
,
$this
->
stringParams
))
{
/* String parameter */
$isString
=
TRUE
;
$paramValue
=
sambaMungedDial
::
strhex
(
$paramValue
.
chr
(
0
)
.
chr
(
0
));
}
else
{
$isString
=
FALSE
;
}
/* Time parameter? */
if
(
in_array
(
$paramName
,
$this
->
timeParams
))
{
}
elseif
(
in_array
(
$paramName
,
$this
->
timeParams
))
{
/* Time parameter */
$paramValue
=
sambaMungedDial
::
genTime
(
$paramValue
);
}
...
...
@@ -350,10 +350,10 @@ class sambaMungedDial
{
$flag
=
substr
(
$this
->
ctx
[
'CtxCfgFlags1'
],
5
,
1
);
if
(
!
$checked
)
{
$flag
|=
1
;
}
else
{
if
(
$checked
)
{
$flag
&=
0xFE
;
}
else
{
$flag
|=
1
;
}
$this
->
ctx
[
'CtxCfgFlags1'
][
5
]
=
sprintf
(
'%1x'
,
$flag
);
...
...
Alex-31
@Alex-31
mentioned in issue
#940 (closed)
·
Sep 02, 2017
mentioned in issue
#940 (closed)
mentioned in issue #940
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