|
...
|
...
|
@@ -86,8 +86,8 @@ if(isset($_POST['submit'])) {
|
|
86
|
86
|
$sitename = escapestring(descript(strip_tags($_POST['newsitename'])));
|
|
87
|
87
|
$slogan = escapestring(descript(strip_tags($_POST['newslogan'])));
|
|
88
|
88
|
$url = escapestring(descript(strip_tags($_POST['newsiteurl'])));
|
|
89
|
|
- // if the http:// is missing add it.
|
|
90
|
|
- if(substr($url, 0, 7) != "http://") $url = "http://".$url;
|
|
|
89
|
+ // if the https:// is missing add it.
|
|
|
90
|
+ if(substr($url, 0, 8) != "https://" && substr($url, 0, 7) != "http://") $url = "https://".$url;
|
|
91
|
91
|
// we also want to check for a trailing slash.
|
|
92
|
92
|
if(substr($url, -1, 1) == "/") $url = substr($url, 0, strlen($url) - 1);
|
|
93
|
93
|
$tableprefix = escapestring(descript(strip_tags($_POST['newtableprefix'])));
|
|
...
|
...
|
@@ -484,4 +484,4 @@ if(isset($_POST['submit'])) {
|
|
484
|
484
|
$output .= write_message(_SMTPOFF);
|
|
485
|
485
|
}
|
|
486
|
486
|
$output .= "<tr><td colspan='2'><div align='center'><input type='submit' id='submit' class='button' name='submit' value='"._SUBMIT."'></div></form></td></tr></table>";
|
|
487
|
|
-?>
|
|
488
|
487
|
\ No newline at end of file
|
|
|
488
|
+?>
|