From 48e40a6712d7d5cd3ba724d59a4803988fbd5e60 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 6 Jul 2013 10:41:19 +0100 Subject: [PATCH] trim whitespace when adding aliases --- ext/alias_editor/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index 0173ff05..fb52ce2e 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -15,8 +15,8 @@ class AddAliasEvent extends Event { var $newtag; public function AddAliasEvent($oldtag, $newtag) { - $this->oldtag = $oldtag; - $this->newtag = $newtag; + $this->oldtag = trim($oldtag); + $this->newtag = trim($newtag); } }