#1375: Escape primary_key values in admin interface
-------------------------------------------------------------+--------------
Reporter: Malcolm Tredinnick <[EMAIL PROTECTED]> | Owner:
nobody
Status: reopened |
Component: Admin interface
Version: |
Resolution:
Keywords: |
Stage: Accepted
Has_patch: 1 |
Needs_docs: 0
Needs_tests: 1 |
Needs_better_patch: 1
-------------------------------------------------------------+--------------
Comment (by [EMAIL PROTECTED]):
It actually looks like the problem is that the primary_key gets unquoted
but never quoted. In the case of my ids I am lucky enough to happen to
have more than 2 digits following the underscore and so django sees '_00'
and replaces with chr(int('00',16)) which of course is '\x00'. I imagine
the tests didn't try this pathological case (or even any cases?, since it
seems the quote method is never actually called, so I'm not sure how this
could have been fixed at all!).
--
Ticket URL: <http://code.djangoproject.com/ticket/1375#comment:15>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---