#26076: SessionBase's _hash method's variable key_salt need add a dot to be a
complete class path
--------------------------------------+--------------------
     Reporter:  chnliyong             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  contrib.sessions      |    Version:  1.9
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 Maybe it's more elegant to add a dot in the key_salt (variable of
 django.contrib.sessions.backends.base.SessionBase._hash method in file
 django/contrib/sessions/backends/base.py)

   {{{#!python
       def _hash(self, value):
         key_salt = "django.contrib.sessions" + self.__class__.__name__
         return salted_hmac(key_salt, value).hexdigest()
   }}}


 Now the module and class name is not separated by a dot (like
 '''{{{django.contrib.sessionsSessionStore}}}''' rather than
 '''{{{django.contrib.sessions.SessionStore}}}''' )

--
Ticket URL: <https://code.djangoproject.com/ticket/26076>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.f3c189b081705d049c430cc84bc26f8a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to