mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Fix number with spaces issue into peerlist
* Also factorize one function
This commit is contained in:
@@ -94,8 +94,9 @@ class SmsController extends Controller {
|
||||
|
||||
$countPhone = count($phoneList);
|
||||
for ($i=0; $i < $countPhone; $i++) {
|
||||
if (isset($contactsSrc[$phoneList[$i]])) {
|
||||
$contacts[$phoneList[$i]] = $contactsSrc[$phoneList[$i]];
|
||||
$fmtPN = preg_replace("#[ ]#","/", $phoneList[$i]);
|
||||
if (isset($contactsSrc[$fmtPN])) {
|
||||
$contacts[$fmtPN] = $contactsSrc[$fmtPN];
|
||||
}
|
||||
}
|
||||
// @ TODO: filter correctly
|
||||
|
||||
Reference in New Issue
Block a user