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
547a9eda
Commit
547a9eda
authored
Feb 20, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put limit on soze of exception-value header to prevent
server errors.
parent
38f06bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/Response.py
lib/python/ZPublisher/Response.py
+3
-3
No files found.
lib/python/ZPublisher/Response.py
View file @
547a9eda
...
...
@@ -3,7 +3,7 @@
__doc__
=
'''CGI Response Output formatter
$Id: Response.py,v 1.2
5 1998/01/15 20:20:03 brian
Exp $'''
$Id: Response.py,v 1.2
6 1998/02/20 14:11:47 jim
Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -53,7 +53,7 @@ $Id: Response.py,v 1.25 1998/01/15 20:20:03 brian Exp $'''
# Digital Creations, info@Digicool.com
# (540) 371-6909
#
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
,
regsub
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
...
...
@@ -434,7 +434,7 @@ class Response:
ef
=
str
(
tb
.
tb_frame
.
f_code
.
co_filename
)
if
find
(
ev
,
'<html>'
)
>=
0
:
ev
=
'bobo exception'
self
.
setHeader
(
'bobo-exception-type'
,
et
)
self
.
setHeader
(
'bobo-exception-value'
,
ev
)
self
.
setHeader
(
'bobo-exception-value'
,
ev
[:
255
]
)
self
.
setHeader
(
'bobo-exception-file'
,
ef
)
self
.
setHeader
(
'bobo-exception-line'
,
el
)
...
...
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