Browse Source

修复显示错误

tags/6.2.0
tianya 2 months ago
parent
commit
c95dd4f629
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/admin/article_edit.php
  2. +1
    -1
      src/system/archive/archives.class.php
  3. +1
    -1
      src/system/filter.inc.php

+ 1
- 1
src/admin/article_edit.php View File

@@ -135,7 +135,7 @@ else if ($dopost == 'save') {
//跳转网址的文档强制为动态
if (preg_match("#j#", $flag)) $ismake = -1;
//更新数据库的SQL语句
$query = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight'WHERE id='$id'; ";
$query = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; ";
if (!$dsql->ExecuteNoneQuery($query)) {
ShowMsg('数据保存到数据库主表`#@__archives`时出错,请检查数据库字段', -1);
exit();


+ 1
- 1
src/system/archive/archives.class.php View File

@@ -149,7 +149,7 @@ class Archives
$this->Fields['filename'] = '';
}
if (is_array($row)) {
foreach ($row as $k => $v) $row[strtolower($k)] = $v;
foreach ($row as $k => $v) $row[strtolower($k)] = stripcslashes($v);
}
if (is_array($this->ChannelUnit->ChannelFields) && !empty($this->ChannelUnit->ChannelFields)) {
foreach ($this->ChannelUnit->ChannelFields as $k => $arr) {


+ 1
- 1
src/system/filter.inc.php View File

@@ -33,7 +33,7 @@ function _FilterAll($fk, &$svar)
$svar = preg_replace('/'.$cfg_replacestr.'/i', "***", $svar);
}
}
return addslashes($svar);
return $svar;
}
/* 对_GET,_POST,_COOKIE进行过滤 */
foreach (array('_GET', '_POST', '_COOKIE') as $_request) {


Loading…
Cancel
Save