mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-27 19:05:16 +00:00
fix encode error for shib institution attr (#6613)
This commit is contained in:
parent
a2cd02f007
commit
ff3d7b8bb7
@ -16,8 +16,6 @@ from shibboleth.app_settings import SHIB_ATTRIBUTE_MAP, LOGOUT_SESSION_KEY, \
|
||||
|
||||
from seahub import auth
|
||||
from seahub.base.accounts import User
|
||||
from seahub.auth.models import SocialAuthUser
|
||||
from seahub.base.sudo_mode import update_sudo_mode_ts
|
||||
from seahub.profile.models import Profile
|
||||
from seahub.utils.file_size import get_quota_from_string
|
||||
from seahub.role_permissions.utils import get_enabled_role_permissions_by_role
|
||||
@ -179,7 +177,7 @@ class ShibbolethRemoteUserMiddleware(RemoteUserMiddleware):
|
||||
p.nickname = nickname.encode("iso-8859-1").decode('utf8')
|
||||
|
||||
if institution:
|
||||
p.institution = institution
|
||||
p.institution = institution.encode("iso-8859-1").decode('utf8')
|
||||
|
||||
if contact_email:
|
||||
p.contact_email = contact_email
|
||||
|
Loading…
Reference in New Issue
Block a user