aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Acl.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-30 15:18:33 -0700
committerzotlabs <mike@macgirvin.com>2018-03-30 15:18:33 -0700
commit43249bd4be8495dadaae859bf42f14a90af7b574 (patch)
treeedd1ea44b2be554143a4487271b41b081e2ab61b /Zotlabs/Module/Acl.php
parentf54aa4f21e63e2d0be94ee92f681ddec641da441 (diff)
downloadvolse-hubzilla-43249bd4be8495dadaae859bf42f14a90af7b574.tar.gz
volse-hubzilla-43249bd4be8495dadaae859bf42f14a90af7b574.tar.bz2
volse-hubzilla-43249bd4be8495dadaae859bf42f14a90af7b574.zip
hubzilla issue #1020 - PM using unicode domain for recipient. May require further testing
Diffstat (limited to 'Zotlabs/Module/Acl.php')
-rw-r--r--Zotlabs/Module/Acl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index 245b0a9b7..ef901aef1 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -95,7 +95,7 @@ class Acl extends \Zotlabs\Web\Controller {
. "' IN xchan_name) else position('" . protect_sprintf(dbesc(punify($search))) . "' IN xchan_addr) end, ";
$col = ((strpos($search,'@') !== false) ? 'xchan_addr' : 'xchan_name' );
- $sql_extra3 = "AND $col like " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . " ";
+ $sql_extra3 = "AND $col like " . protect_sprintf( "'%" . dbesc(($col === 'xchan_addr') ? punify($search) : $search) . "%'" ) . " ";
}
else {