Blacklist: add use of non breaking space in initial message
Fixes the case where the caller id number runs into the name
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
diff --git a/include/BaseAastra.class.php b/include/BaseAastra.class.php
index b01a845..d2ad5cd 100644
--- a/include/BaseAastra.class.php
+++ b/include/BaseAastra.class.php
@@ -14,6 +14,7 @@
var $title;
var $do = null;
var $back = null;
+ const nbsp = "\xa0";
static final function exception_handler($e) {
require_once('AastraIPPhoneTextScreen.class.php');
diff --git a/include/Blacklist.class.php b/include/Blacklist.class.php
index 55984cb..bc917e3 100644
--- a/include/Blacklist.class.php
+++ b/include/Blacklist.class.php
@@ -100,7 +100,7 @@
$this->do->addSoftkey('1', 'Blacklist', $this->url.'?action=black');
}
if ($this->whitelist) {
- $text .= ' which is already in the whitelist as "'.$this->whitelist.'"';
+ $text .= ' which is already in the whitelist as'.self::nbsp.'"'.$this->whitelist.'"';
$this->do->addSoftkey('2', 'Remove Whitelist', $this->url.'?action=del_white');
$this->do->addSoftkey('4', 'Edit Whitelist', $this->url.'?action=white¤t='.$this->whitelist);
} else {