|
From: Benjamin C. <bc...@us...> - 2002-10-18 17:38:23
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv11610
Modified Files:
bug.php
Log Message:
Fixes bug #624785 - Not stripping out the ' when adding CCs.
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- bug.php 23 Sep 2002 20:16:30 -0000 1.119
+++ bug.php 18 Oct 2002 17:38:19 -0000 1.120
@@ -351,7 +351,7 @@
// Add CC if specified
if ($add_cc) {
if (!$cc_uid = $db->getOne("select user_id from ".TBL_AUTH_USER.
- " where login = '$add_cc'")) {
+ " where login = ".$db->quote(stripslashes($add_cc)))) {
show_bug($bugid,array('status' => $STRING['nouser']));
return;
}
|