File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1274,9 +1274,9 @@ private function getRegex(string $tagName): string
1274
1274
switch ($ tagName ) {
1275
1275
case 'block ' :
1276
1276
if ($ single ) {
1277
- $ regex = $ begin . '(?: ' . $ tagName . '\b(?>(?:(?!name=).)*)\bname=([ \'\"])(?P<name>[\$\w\-\/\.]+) \\1(?>[^ ' . $ end . ']*)|\/ ' . $ tagName . ') ' . $ end ;
1277
+ $ regex = $ begin . '(?: ' . $ tagName . '\b\s+ (?>(?:(?!name=).)*)\bname=([ \'\"])(?P<name>[\$\w\-\/\.]+) \\1(?>[^ ' . $ end . ']*)|\/ ' . $ tagName . ') ' . $ end ;
1278
1278
} else {
1279
- $ regex = $ begin . '(?: ' . $ tagName . '\b(?>(?:(?!name=).)*)\bname=([ \'\"])(?P<name>[\$\w\-\/\.]+) \\1(?>(?:(?! ' . $ end . ').)*)|\/ ' . $ tagName . ') ' . $ end ;
1279
+ $ regex = $ begin . '(?: ' . $ tagName . '\b\s+ (?>(?:(?!name=).)*)\bname=([ \'\"])(?P<name>[\$\w\-\/\.]+) \\1(?>(?:(?! ' . $ end . ').)*)|\/ ' . $ tagName . ') ' . $ end ;
1280
1280
}
1281
1281
break ;
1282
1282
case 'literal ' :
Original file line number Diff line number Diff line change @@ -3302,7 +3302,7 @@ protected function parseView(array &$options): void
3302
3302
if (isset ($ options ['order ' ])) {
3303
3303
// 视图查询排序处理
3304
3304
foreach ($ options ['order ' ] as $ key => $ val ) {
3305
- if (is_numeric ($ key )) {
3305
+ if (is_numeric ($ key ) && is_string ( $ val ) ) {
3306
3306
if (strpos ($ val , ' ' )) {
3307
3307
list ($ field , $ sort ) = explode (' ' , $ val );
3308
3308
if (array_key_exists ($ field , $ options ['map ' ])) {
You can’t perform that action at this time.
0 commit comments