Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50803 Details for
Bug 80109
dev-python/mod_python CAN-2005-0088 XML flaw
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
publisher-2.diff
publisher-2.diff (text/plain), 1.35 KB, created by
Thierry Carrez (RETIRED)
on 2005-02-09 02:44:56 UTC
(
hide
)
Description:
publisher-2.diff
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2005-02-09 02:44:56 UTC
Size:
1.35 KB
patch
obsolete
>*** ../mod_python-3.1.3/lib/python/mod_python/publisher.py Wed Feb 9 08:41:43 2005 >--- lib/python/mod_python/publisher.py Wed Feb 9 08:53:15 2005 >*************** >*** 258,270 **** > (period) to find the last one we're looking for. > """ > >! for obj_str in object_str.split('.'): >! obj = getattr(obj, obj_str) > >! # object cannot be a module >! if type(obj) == ModuleType: > raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND > > realm, user, passwd = process_auth(req, obj, realm, > user, passwd) > >--- 258,282 ---- > (period) to find the last one we're looking for. > """ > >! parts = object_str.split('.') > >! for n in range(len(parts)): >! >! obj = getattr(obj, parts[n]) >! obj_type = type(obj) >! >! # object cannot be a module or a class >! if obj_type in [ClassType, ModuleType]: > raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND > >+ if n < (len(parts)-1): >+ >+ # all but the last object ... >+ >+ # ...must be instance >+ if obj_type != InstanceType: >+ raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND >+ > realm, user, passwd = process_auth(req, obj, realm, > user, passwd) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 80109
:
50028
| 50803 |
51011