Projet

Général

Profil

0001-saml-don-t-crash-on-empty-multi-select-field-25965.patch

Frédéric Péters, 30 août 2018 13:51

Télécharger (830 octets)

Voir les différences:

Subject: [PATCH] saml: don't crash on empty multi select field (#25965)

 src/authentic2/saml/fields.py | 2 ++
 1 file changed, 2 insertions(+)
src/authentic2/saml/fields.py
165 165
    def to_python(self, value):
166 166
        if isinstance(value, list):
167 167
            return value
168
        if not value:
169
            return []
168 170
        return value.split(",")
169 171

  
170 172
    def from_db_value(self, value, expression, connection, context):
171
-