Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
d89b6948
Commit
d89b6948
authored
Aug 01, 2008
by
tbrehm
Browse files
Fixed 2 bugs in mail transports when a port is assigned.
parent
387e24d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_transport_edit.php
View file @
d89b6948
...
...
@@ -82,12 +82,17 @@ class page_action extends tform_actions {
}
else
{
$rec
[
"type"
]
=
$tmp_parts
[
0
];
}
if
(
@
substr
(
$tmp_parts
[
1
],
0
,
1
)
==
'['
)
{
if
(
@
$tmp_parts
[
2
]
!=
''
)
{
$dest
=
@
$tmp_parts
[
1
]
.
':'
.
@
$tmp_parts
[
2
];
}
else
{
$dest
=
$tmp_parts
[
1
];
}
if
(
@
substr
(
$dest
,
0
,
1
)
==
'['
)
{
$rec
[
"mx"
]
=
'checked="CHECKED"'
;
$rec
[
"destination"
]
=
@
s
ubstr
(
$tmp_parts
[
1
],
1
,
-
1
);
$rec
[
"destination"
]
=
@
s
tr_replace
(
']'
,
''
,
@
str_replace
(
'['
,
''
,
$dest
)
);
}
else
{
$rec
[
"mx"
]
=
''
;
$rec
[
"destination"
]
=
@
$
tmp_parts
[
1
]
;
$rec
[
"destination"
]
=
@
$
dest
;
}
$types
=
array
(
'smtp'
=>
'smtp'
,
'uucp'
=>
'uucp'
,
'slow'
=>
'slow'
,
'error'
=>
'error'
,
''
=>
'null'
);
...
...
@@ -127,7 +132,12 @@ class page_action extends tform_actions {
//* Compose transport field
if
(
$this
->
dataRecord
[
"mx"
]
==
'y'
)
{
$transport
=
'['
.
$this
->
dataRecord
[
"destination"
]
.
']'
;
if
(
stristr
(
$this
->
dataRecord
[
"destination"
],
':'
))
{
$tmp_parts
=
explode
(
":"
,
$this
->
dataRecord
[
"destination"
]);
$transport
=
'['
.
$tmp_parts
[
0
]
.
']:'
.
$tmp_parts
[
1
];
}
else
{
$transport
=
'['
.
$this
->
dataRecord
[
"destination"
]
.
']'
;
}
}
else
{
$transport
=
$this
->
dataRecord
[
"destination"
];
}
...
...
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