mirror of https://github.com/BOINC/boinc.git
Remove extra slashes when using PM preview
svn path=/trunk/boinc/; revision=13578
This commit is contained in:
parent
34a31a2827
commit
27cb39ca5a
|
@ -50,10 +50,11 @@ function pm_create_new($error = null) {
|
|||
}
|
||||
} else {
|
||||
$writeto = post_str("to", true);
|
||||
$subject = post_str("subject", true);
|
||||
$content = post_str("content", true);
|
||||
$subject = stripslashes(post_str("subject", true));
|
||||
$content = stripslashes(post_str("content", true));
|
||||
}
|
||||
|
||||
$content = htmlspecialchars($content);
|
||||
$subject = htmlspecialchars($subject);
|
||||
|
||||
if ($error != null) {
|
||||
|
|
|
@ -137,13 +137,13 @@ function count_uotd_candidates(){
|
|||
} else {
|
||||
$query = default_uotd_candidates_query();
|
||||
}
|
||||
|
||||
|
||||
$result = mysql_query($query);
|
||||
if($result) {
|
||||
$n = mysql_num_rows($result);
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
|
||||
return $n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue