Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
3829b68e
Commit
3829b68e
authored
Feb 16, 2012
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- LP #933307: Fixed ++skin++ namespace handling.
parent
8c5288fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/ZPublisher/HTTPRequest.py
src/ZPublisher/HTTPRequest.py
+8
-1
No files found.
src/ZPublisher/HTTPRequest.py
View file @
3829b68e
...
...
@@ -1532,9 +1532,16 @@ class HTTPRequest(BaseRequest):
def
taintWrapper
(
self
,
enabled
=
TAINTING_ENABLED
):
return
enabled
and
TaintRequestWrapper
(
self
)
or
self
# Original version: zope.publisher.http.HTTPRequest.shiftNameToApplication
def
shiftNameToApplication
(
self
):
"""see zope.publisher.interfaces.http.IVirtualHostRequest"""
# this is needed for ++skin++
if
len
(
self
.
_steps
)
==
1
:
self
.
_script
.
append
(
self
.
_steps
.
pop
())
self
.
_resetURLS
()
return
raise
ValueError
(
"Can only shift leading traversal "
"names to application names"
)
def
getURL
(
self
):
return
self
.
URL
...
...
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