mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
修改说明;修改基础代码;
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
<div class="layui-form-item full-line">
|
||||
<label class="layui-form-label">属性</label>
|
||||
<div class="layui-input-block">
|
||||
<div data-toggle="property-input" data-name="property">{$row.property|raw|ua_htmlspecialchars_decode|default=''}</div>
|
||||
<div data-toggle="property-input" data-name="property">{$row.property|raw|default=''}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item full-line">
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</div>
|
||||
<div class="value">
|
||||
<div class="article-item">
|
||||
{$row.describe|raw|ua_htmlspecialchars_decode}
|
||||
{$row.describe|raw}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -219,39 +219,6 @@ if (!function_exists('unparse_url')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ua_htmlspecialchars')) {
|
||||
function ua_htmlspecialchars($string)
|
||||
{
|
||||
if (is_null($string)) {
|
||||
$string = '';
|
||||
}
|
||||
|
||||
return htmlspecialchars($string);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ua_htmlentities')) {
|
||||
function ua_htmlentities($string)
|
||||
{
|
||||
if (is_null($string)) {
|
||||
$string = '';
|
||||
}
|
||||
|
||||
return htmlentities($string);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ua_htmlspecialchars_decode')) {
|
||||
function ua_htmlspecialchars_decode($string, $flag = ENT_QUOTES | ENT_SUBSTITUTE)
|
||||
{
|
||||
if (is_null($string)) {
|
||||
$string = '';
|
||||
}
|
||||
|
||||
return htmlspecialchars_decode($string, $flag);
|
||||
}
|
||||
}
|
||||
|
||||
function build_upload_url($url, $upload_type = null)
|
||||
{
|
||||
if (is_null($upload_type)) {
|
||||
|
||||
@@ -246,7 +246,8 @@ class AdminController extends BaseController
|
||||
*/
|
||||
protected function buildTableParames($excludeFields = [])
|
||||
{
|
||||
$get = $this->request->get('', null, []);
|
||||
$get = $this->request->get('', null);
|
||||
|
||||
$page = isset($get['page']) && !empty($get['page']) ? $get['page'] : 1;
|
||||
$limit = isset($get['limit']) && !empty($get['limit']) ? $get['limit'] : 15;
|
||||
$group = isset($get['group']) && !empty($get['group']) ? $get['group'] : null;
|
||||
|
||||
@@ -5,5 +5,5 @@ namespace app\common\provider;
|
||||
// 应用请求对象类
|
||||
class Request extends \think\Request
|
||||
{
|
||||
protected $filter = ['ua_htmlspecialchars'];
|
||||
protected $filter = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user