Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50028 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.diff
publisher.diff (text/plain), 1.42 KB, created by
Sune Kloppenborg Jeppesen (RETIRED)
on 2005-01-30 22:28:58 UTC
(
hide
)
Description:
publisher.diff
Filename:
MIME Type:
Creator:
Sune Kloppenborg Jeppesen (RETIRED)
Created:
2005-01-30 22:28:58 UTC
Size:
1.42 KB
patch
obsolete
>*** ../mod_python-3.1.3/lib/python/mod_python/publisher.py Tue Feb 17 06:47:27 2004 >--- lib/python/mod_python/publisher.py Sun Jan 30 15:42:18 2005 >*************** >*** 258,272 **** > (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) > > return obj > >--- 258,284 ---- > (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) > > return obj >
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