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
afc624a5
Commit
afc624a5
authored
Aug 18, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in the detection on HTML error messages which could mess up error message formatting.
parent
25a82bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+3
-3
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
afc624a5
...
...
@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.1
8 1999/08/04 20:50:22 jim
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.1
9 1999/08/18 00:23:50 amos
Exp $'''
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
...
@@ -625,7 +625,7 @@ class HTTPResponse(BaseResponse):
self
.
_traceback
(
t
,
v
,
tb
)),
is_error
=
1
)
elif
lower
(
strip
(
b
))[:
6
]
==
'<html>'
:
elif
lower
(
strip
(
b
))[:
6
]
==
'<html>'
or
lower
(
strip
(
b
))[:
14
]
==
'<!doctype html'
:
# error is an HTML document, not just a snippet of html
tb
=
self
.
setBody
(
b
+
self
.
_traceback
(
t
,
'(see above)'
,
tb
),
is_error
=
1
)
...
...
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