From 27c80f9ee652b3c086ee876e72ea9bd8ff7c7edc Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 7 Jan 2011 01:39:35 +0000 Subject: fix string substitution, this emptied the searchfilter, leading to a catdap error page --- lib/CatDap/Controller/user.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/CatDap/Controller/user.pm b/lib/CatDap/Controller/user.pm index 5c58d48..0322b87 100644 --- a/lib/CatDap/Controller/user.pm +++ b/lib/CatDap/Controller/user.pm @@ -241,8 +241,7 @@ sub add : Local { $attr = $c->req->param('attribute'); $value = $c->req->param('value'); $user = $c->user->username; - $userfilter = $c->user->store->user_filter; - $userfilter = s/%s/$c->user->username/g; + $userfilter = sprintf($c->user->store->user_filter ,$c->user->username); $c->log->debug("Searching for user $user with $userfilter"); $mesg = $c->model('User')->search($userfilter); $entry = $mesg->entry; -- cgit v1.2.1