|
From: Benjamin C. <bc...@us...> - 2001-07-18 16:37:39
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv25274
Modified Files:
bug.php
Log Message:
Strip the slashes on values going into the email template
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- bug.php 2001/07/18 13:55:19 1.14
+++ bug.php 2001/07/18 16:37:36 1.15
@@ -68,12 +68,12 @@
$newvalue = $q->grab_field("select Name from $field where ${field}ID = $cf[$field]");
$q->query("insert into BugHistory (BugID, ChangedField, OldValue, NewValue, CreatedBy, CreatedDate) values ({$buginfo['BugID']}, '$field', '$oldvalue', '$newvalue', $u, $now)");
$t->set_var(array(
- $field => $newvalue,
+ $field => stripslashes($newvalue),
$field.'Stat' => '!'
));
} else {
$t->set_var(array(
- $field => $oldvalue,
+ $field => stripslashes($oldvalue),
$field.'Stat' => ' '
));
}
|