close security holes in patron search autocompletion
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 12 May 2008 15:01:10 +0000 (10:01 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 12 May 2008 15:02:56 +0000 (10:02 -0500)
commit1cdfcdf12bfa02818e5fbfda06a3d364983ec73b
tree535d016dd13e68ec62f5400e7e80dd890307b5ed
parent9fb4a72122fbb008fd642074dfb7f47fa820ca02
close security holes in patron search autocompletion

* Added authorization check - user must have a valid
  session cookie to use this feature; before this change,
  anybody could use circ/ysearch.pl to retrieve the entire
  patron directory without authorization.
* (bug 1953) now uses SQL placeholders

Note: this does, unfortunately, noticeably slow down automcompletion;
this indicates a need for factoring of C4::Auth to make authentication
for AJAX scripts as fast as possible.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/ysearch.pl