Remove dot(.) before displaying articles since recent mods

This commit is contained in:
Retro_Guy 2021-01-23 03:09:50 -07:00
parent 77350f50d6
commit 251f492cae
2 changed files with 7 additions and 0 deletions

View File

@ -186,6 +186,9 @@ function message_read($id,$bodynum=0,$group="") {
echo $text_error["read_access_denied"];
return;
}
if(!is_numeric($id)) {
return false;
}
$message = new messageType;
if ((isset($cache_articles)) && ($cache_articles == true)) {
// Try to load a cached article
@ -219,6 +222,9 @@ function message_read($id,$bodynum=0,$group="") {
((!isset($message->body[$bodynum])) &&
($bodynum != -1))) {
// Pull article from spool if exists, else from server
if(trim($group) == '') {
return false;
}
unset($rawmessage);
if($CONFIG['article_database'] == '1') {
$rawmessage = np_get_db_article($id, $group, 1);

View File

@ -1279,6 +1279,7 @@ function np_get_db_article($article, $group, $makearray=1, $dbh=null) {
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." DEBUG: fetched: ".$article." from ".$group, FILE_APPEND);
if($makearray == 1) {
$thisarticle = preg_split("/\r\n|\n|\r/", trim($msg2));
array_pop($thisarticle);
return $thisarticle;
} else {
return trim($msg2);