Browse Source

移除<x>显示过滤

develop
叙述、别离 6 months ago
parent
commit
f97b5ddbd2
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/admin/tags_main.php
  2. +1
    -1
      src/admin/templets/freelist_main.htm
  3. +1
    -1
      src/admin/templets/search_keywords_main.htm
  4. +1
    -1
      src/system/datalistcp.class.php
  5. +1
    -1
      src/system/helpers/filter.helper.php

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

@@ -16,7 +16,7 @@ if (empty($tag)) $tag = '';
if (empty($action)) {
$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z]#i", '', $orderby);
$orderway = isset($orderway) && $orderway == 'asc' ? 'asc' : 'desc';
if (!empty($tag)) $where = " where tag like '%$tag%'";
if (!empty($tag)) $where = " WHERE tag like '%$tag%'";
else $where = '';
$neworderway = ($orderway == 'desc' ? 'asc' : 'desc');
$query = "SELECT * FROM `#@__tagindex` $where ORDER BY $orderby $orderway";


+ 1
- 1
src/admin/templets/freelist_main.htm View File

@@ -69,7 +69,7 @@
var ahtml = "<ul class='pagination justify-content-center'>";
var startloop = 1;
var endnum = 0;
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item disabled'><a href='javascript:;' class='page-link' onclick='LoadPage(1)'>首页</a></li>";
if (pageno > 1) ahtml += "<li class='page-item'><a href='javascript:;' class='page-link' onclick='LoadPage(" + (pageno - 1) + ")'>上页</a></li>";
if (startnum >= pagenum - listsize) {


+ 1
- 1
src/admin/templets/search_keywords_main.htm View File

@@ -101,7 +101,7 @@
var ahtml = "<ul class='pagination justify-content-center'>";
var startloop = 1;
var endnum = 0;
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item'><a href='javascript:LoadPage(1);' class='page-link'>首页</a></li>";
if (pageno > 1) ahtml += "<li class='page-item'><a href='javascript:LoadPage(" + (pageno - 1) + ");' class='page-link'>上页</a></li>";
if (startnum >= pagenum - listsize) {


+ 1
- 1
src/system/datalistcp.class.php View File

@@ -189,7 +189,7 @@ class DataListCP
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2);
$replacement = substr($ra[$i], 0, 2).substr($ra[$i], 2);
$val = preg_replace($pattern, $replacement, $val);
if ($val_before == $val) {
$found = false;


+ 1
- 1
src/system/helpers/filter.helper.php View File

@@ -81,7 +81,7 @@ if (!function_exists('RemoveXSS')) {
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2);
$replacement = substr($ra[$i], 0, 2).substr($ra[$i], 2);
$val = preg_replace($pattern, $replacement, $val);
if ($val_before == $val) {
$found = false;


Loading…
Cancel
Save