Skip to content

Commit 86c28aa

Browse files
committed
Fixes issue #364, use parse_url instead to get the hostname
1 parent 229a26d commit 86c28aa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

include/inc_front/content/cnt23.article.inc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,9 +2010,7 @@
20102010
// get email addresses of recipients and senders
20112011
$cnt_form["target"] = convertStringToArray($cnt_form["target"], ';');
20122012
if(empty($cnt_form["subject"])) {
2013-
$cnt_form["alt_subj"] = str_replace('http://', '', $phpwcms['site']);
2014-
$cnt_form["alt_subj"] = substr($cnt_form["alt_subj"], 0, trim($phpwcms['site'], '/'));
2015-
$cnt_form["subject"] = 'Webform: '.$cnt_form["alt_subj"];
2013+
$cnt_form["subject"] = 'Webform: ' . parse_url($phpwcms['site'], PHP_URL_HOST);
20162014
}
20172015

20182016
// check for BCC Addresses

0 commit comments

Comments
 (0)