From 8e51b36c2f0dc3cd5373e9f938a692a188607012 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 11 Dec 2015 23:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convention.php | 1 + library/think/url.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/convention.php b/convention.php index 6683bee1..74ff049c 100644 --- a/convention.php +++ b/convention.php @@ -135,6 +135,7 @@ return [ // | 数据库设置 // +---------------------------------------------------------------------- + 'db_like_fields' => '', 'database' => [ // 数据库类型 'type' => 'mysql', diff --git a/library/think/url.php b/library/think/url.php index cdd00f38..543d83e9 100644 --- a/library/think/url.php +++ b/library/think/url.php @@ -105,8 +105,9 @@ class Url // 解析URL和参数 域名 protected static function parseUrl($url, $vars, $domain) { - $info = parse_url($url); - $url = !empty($info['path']) ? $info['path'] : ACTION_NAME; + $info = parse_url($url); + $url = !empty($info['path']) ? $info['path'] : ACTION_NAME; + $anchor = ''; if (isset($info['fragment'])) { // 解析锚点 $anchor = $info['fragment'];