issue #63: make sure all websites are saved with http:// in front
parent
dfa848c072
commit
e96b510000
|
@ -194,6 +194,10 @@ class ServerController extends AbstractServerController {
|
|||
'email' => in_array($_POST['email'], array('yes', 'no')) ? $_POST['email'] : 'no',
|
||||
'sms' => in_array($_POST['sms'], array('yes', 'no')) ? $_POST['sms'] : 'no',
|
||||
);
|
||||
// make sure websites start with http://
|
||||
if($clean['type'] == 'website' && substr($clean['ip'], 0, 4) != 'http') {
|
||||
$clean['ip'] = 'http://' . $clean['ip'];
|
||||
}
|
||||
|
||||
// check for edit or add
|
||||
if($this->server_id > 0) {
|
||||
|
|
Loading…
Reference in New Issue