replace newlines in userinput newlistdestination to avoid error
This commit is contained in:
parent
e04470b95f
commit
a04893aed9
|
@ -70,7 +70,9 @@ if ($_SESSION['log'] == 1) {
|
|||
$oldlistdestinations[3][] = $row['destination_username'] . '@' . $row['destination_domain'];
|
||||
}
|
||||
$newlistdestinations = array(array(),array(),array());
|
||||
foreach (explode(' ', $_POST['newlistdestinations']) as $newlistdestination) {
|
||||
// replace newlines in userinput newlistdestination to avoid error
|
||||
$postnewlistdestinations = preg_replace('~\R~u', " ", $_POST['newlistdestinations']);
|
||||
foreach (explode(' ', $postnewlistdestinations) as $newlistdestination) {
|
||||
$newlistdestinationex = explode('@', $newlistdestination);
|
||||
array_push($newlistdestinations[0], $newlistdestinationex[0]);
|
||||
array_push($newlistdestinations[1], $newlistdestinationex[1]);
|
||||
|
|
Loading…
Reference in New Issue