From 442e1a0de171f034e1161c27f4ff2e8f127e61f8 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 28 Jul 2012 11:42:07 +0100 Subject: [PATCH] stricter data for ban adding --- ext/ipban/main.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/ipban/main.php b/ext/ipban/main.php index 66a02b49..4561d343 100644 --- a/ext/ipban/main.php +++ b/ext/ipban/main.php @@ -27,10 +27,10 @@ class AddIPBanEvent extends Event { var $reason; var $end; - public function AddIPBanEvent($ip, $reason, $end) { - $this->ip = $ip; - $this->reason = $reason; - $this->end = $end; + public function AddIPBanEvent(/*string(ip)*/ $ip, /*sintrg*/ $reason, /*string*/ $end) { + $this->ip = trim($ip); + $this->reason = trim($reason); + $this->end = trim($end); } } // }}}