aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2013-05-10 08:09:11 -0700
committerJames Bottomley <JBottomley@Parallels.com>2013-05-10 08:09:11 -0700
commite6dcacc45bd95edada2eb4916d96168b9c4b141d (patch)
tree494a64937cc6e8c5049bb4052c1279222a9a6297
parentc6d38e91994cf6e6c19b8fc0659ca89a1ee05aec (diff)
downloadasterisk-aastra-e6dcacc45bd95edada2eb4916d96168b9c4b141d.tar.gz
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>
-rw-r--r--include/BaseAastra.class.php1
-rw-r--r--include/Blacklist.class.php2
2 files changed, 2 insertions, 1 deletions
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 @@ abstract class BaseAastra {
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 @@ class Blacklist extends BaseAastra {
$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&current='.$this->whitelist);
} else {