diff --git a/checkin_notes b/checkin_notes
index a7ab64e63c..33cc988f6d 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -8226,3 +8226,11 @@ David 7 Dec 2003
backend_lib.C
create_work.C
process_result_template.C
+
+David 7 Dec 2003
+ - Changed db_dump so that it doesn't chdir() into the output directory
+ (it it does, and it crashes, that makes its core file
+ visible to the world, and that may contain private info)
+
+ sched/
+ db_dump.C
diff --git a/html/forum/forum.inc b/html/forum/forum.inc
index 07b3057b3a..26b6d5ad67 100644
--- a/html/forum/forum.inc
+++ b/html/forum/forum.inc
@@ -432,7 +432,7 @@ function show_forum_title($forum=NULL, $thread=NULL, $helpdesk=false) {
echo "", " Message boards : ";
}
echo "id, "\">", $forum->title, " : ";
- echo $thread->title;
+ echo stripslashes($thread->title);
echo "
";
} else {
echo "Invalid input to show_forum_title
";
diff --git a/html/forum/thread.php b/html/forum/thread.php
index 012f5109c0..a4369c147f 100644
--- a/html/forum/thread.php
+++ b/html/forum/thread.php
@@ -43,24 +43,22 @@ if ($sort_style == NULL) {
$is_subscribed = false;
if ($logged_in_user) {
- $result = mysql_query("SELECT * FROM subscriptions WHERE (userid = " . $logged_in_user->id . ") AND (threadid = " . $thread->id . ")");
+ $result = mysql_query("SELECT * FROM subscriptions WHERE userid = " . $logged_in_user->id . " AND threadid = " . $thread->id);
if ($result) {
$is_subscribed = (mysql_num_rows($result) > 0);
}
}
-// TODO: Include this in show_forum_title?
+show_forum_title($forum, $thread, $category->is_helpdesk);
echo "
-