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 {
|
} else {
|
||||||
$writeto = post_str("to", true);
|
$writeto = post_str("to", true);
|
||||||
$subject = post_str("subject", true);
|
$subject = stripslashes(post_str("subject", true));
|
||||||
$content = post_str("content", true);
|
$content = stripslashes(post_str("content", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = htmlspecialchars($content);
|
||||||
$subject = htmlspecialchars($subject);
|
$subject = htmlspecialchars($subject);
|
||||||
|
|
||||||
if ($error != null) {
|
if ($error != null) {
|
||||||
|
|
|
@ -137,13 +137,13 @@ function count_uotd_candidates(){
|
||||||
} else {
|
} else {
|
||||||
$query = default_uotd_candidates_query();
|
$query = default_uotd_candidates_query();
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query($query);
|
$result = mysql_query($query);
|
||||||
if($result) {
|
if($result) {
|
||||||
$n = mysql_num_rows($result);
|
$n = mysql_num_rows($result);
|
||||||
}
|
}
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
|
||||||
return $n;
|
return $n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue