Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
pve-manager
Commits
2c72404e
Commit
2c72404e
authored
Apr 30, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTPServer: correctly unescape url
parent
fa239655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
HTTPServer.pm
PVE/HTTPServer.pm
+3
-2
No files found.
PVE/HTTPServer.pm
View file @
2c72404e
...
@@ -26,6 +26,7 @@ use PVE::REST;
...
@@ -26,6 +26,7 @@ use PVE::REST;
use
Net::
IP
;
use
Net::
IP
;
use
URI
;
use
URI
;
use
URI::
Escape
;
use
HTTP::
Status
qw(:constants)
;
use
HTTP::
Status
qw(:constants)
;
use
HTTP::
Headers
;
use
HTTP::
Headers
;
use
HTTP::
Response
;
use
HTTP::
Response
;
...
@@ -1046,7 +1047,7 @@ sub push_request_header {
...
@@ -1046,7 +1047,7 @@ sub push_request_header {
$reqstate
->
{
keep_alive
}
--
;
$reqstate
->
{
keep_alive
}
--
;
if
(
$line
=~
/(\S+)\040(\S+)\040HTTP\/(\d+)\.(\d+)/o
)
{
if
(
$line
=~
/(\S+)\040(\S+)\040HTTP\/(\d+)\.(\d+)/o
)
{
my
(
$method
,
$ur
i
,
$maj
,
$min
)
=
(
$1
,
$2
,
$3
,
$4
);
my
(
$method
,
$ur
l
,
$maj
,
$min
)
=
(
$1
,
$2
,
$3
,
$4
);
if
(
$maj
!=
1
)
{
if
(
$maj
!=
1
)
{
$self
->
error
(
$reqstate
,
506
,
"
http protocol version
$maj
.
$min
not supported
");
$self
->
error
(
$reqstate
,
506
,
"
http protocol version
$maj
.
$min
not supported
");
...
@@ -1062,7 +1063,7 @@ sub push_request_header {
...
@@ -1062,7 +1063,7 @@ sub push_request_header {
$reqstate
->
{
proto
}
->
{
maj
}
=
$maj
;
$reqstate
->
{
proto
}
->
{
maj
}
=
$maj
;
$reqstate
->
{
proto
}
->
{
min
}
=
$min
;
$reqstate
->
{
proto
}
->
{
min
}
=
$min
;
$reqstate
->
{
proto
}
->
{
ver
}
=
$maj
*
1000
+
$min
;
$reqstate
->
{
proto
}
->
{
ver
}
=
$maj
*
1000
+
$min
;
$reqstate
->
{
request
}
=
HTTP::
Request
->
new
(
$method
,
$uri
);
$reqstate
->
{
request
}
=
HTTP::
Request
->
new
(
$method
,
uri_unescape
(
$url
)
);
$reqstate
->
{
starttime
}
=
[
gettimeofday
],
$reqstate
->
{
starttime
}
=
[
gettimeofday
],
$self
->
unshift_read_header
(
$reqstate
);
$self
->
unshift_read_header
(
$reqstate
);
...
...
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