Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
9b96338a
Commit
9b96338a
authored
Feb 05, 2014
by
pzaremba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fixing wrapping - my NetBeans has a mind of its own."
This reverts commit
80be824f
.
parent
3b2a40ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Request.php
framework/web/Request.php
+2
-1
No files found.
framework/web/Request.php
View file @
9b96338a
...
@@ -952,7 +952,8 @@ class Request extends \yii\base\Request
...
@@ -952,7 +952,8 @@ class Request extends \yii\base\Request
$n
=
preg_match_all
(
'/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/'
,
$header
,
$matches
,
PREG_SET_ORDER
);
$n
=
preg_match_all
(
'/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/'
,
$header
,
$matches
,
PREG_SET_ORDER
);
for
(
$i
=
0
;
$i
<
$n
;
++
$i
)
{
for
(
$i
=
0
;
$i
<
$n
;
++
$i
)
{
if
(
!
empty
(
$matches
[
$i
][
1
]))
{
if
(
!
empty
(
$matches
[
$i
][
1
]))
{
$accepts
[]
=
[
$matches
[
$i
][
1
],
isset
(
$matches
[
$i
][
2
])
?
(
float
)
$matches
[
$i
][
2
]
:
1
,
$i
];
$accepts
[]
=
[
$matches
[
$i
][
1
],
isset
(
$matches
[
$i
][
2
])
?
(
float
)
$matches
[
$i
][
2
]
:
1
,
$i
];
}
}
}
}
usort
(
$accepts
,
function
(
$a
,
$b
)
{
usort
(
$accepts
,
function
(
$a
,
$b
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment