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
48fe46df
Commit
48fe46df
authored
Sep 26, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added url unquoting of form field names.
parent
34c24bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+10
-7
No files found.
lib/python/ZPublisher/Publish.py
View file @
48fe46df
...
...
@@ -491,7 +491,7 @@ Publishing a module using Fast CGI
o Configure the Fast CGI-enabled web server to execute this
file.
$Id: Publish.py,v 1.5
4 1997/09/24 18:47:18
jim Exp $"""
$Id: Publish.py,v 1.5
5 1997/09/26 19:15:47
jim Exp $"""
#'
# Copyright
#
...
...
@@ -546,7 +546,7 @@ $Id: Publish.py,v 1.54 1997/09/24 18:47:18 jim Exp $"""
# See end of file for change log.
#
##########################################################################
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
5
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -559,7 +559,7 @@ if __name__ == "__main__": main()
import
sys
,
os
,
string
,
types
,
cgi
,
regex
,
regsub
,
base64
from
string
import
*
from
CGIResponse
import
Response
from
urllib
import
quote
from
urllib
import
quote
,
unquote
from
cgi
import
FieldStorage
,
MiniFieldStorage
UNSPECIFIED_ROLES
=
''
...
...
@@ -607,12 +607,12 @@ class ModulePublisher:
else
:
tuple_items
=
{}
type_re
=
regex
.
compile
(
'
\
(:
\
|%3[aA]
\
)
\
([a-zA-Z][a-zA-Z0-9_]+
\
)
'
)
type_re
=
regex
.
compile
(
'
:[a-zA-Z][a-zA-Z0-9_]+
'
)
type_search
=
type_re
.
search
lt
=
type
([])
CGI_name
=
isCGI_NAME
for
item
in
fslist
:
key=
item.name
key
=
unquote
(
item
.
name
)
try
:
if
(
item
.
file
and
...
...
@@ -628,8 +628,8 @@ class ModulePublisher:
l
=
type_search
(
key
)
while
l
>=
0
:
type_name=type_re.group(
2)
key=key[:l]+key[l+len(type_
re.group(0))
:]
type_name
=
type_re
.
group
(
0
)[
1
:]
key
=
key
[:
l
]
+
key
[
l
+
len
(
type_
name
)
+
1
:]
if
type_name
==
'list'
:
seqf
=
list
elif
type_name
==
'tuple'
:
...
...
@@ -1465,6 +1465,9 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.55 1997/09/26 19:15:47 jim
# Added url unquoting of form field names.
#
# Revision 1.54 1997/09/24 18:47:18 jim
# Fixed bug in handling of case with body and no form data.
#
...
...
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