From 856c3e52b667fbfc4e844a0a483b5c09167c4c67 Mon Sep 17 00:00:00 2001 From: LiYang Date: Mon, 2 Aug 2021 12:48:26 +0800 Subject: [PATCH] fix xss --- account/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/serializers.py b/account/serializers.py index 31ebd097..faec66e2 100644 --- a/account/serializers.py +++ b/account/serializers.py @@ -102,7 +102,7 @@ class EditUserProfileSerializer(serializers.Serializer): avatar = serializers.CharField(max_length=256, allow_blank=True, required=False) blog = serializers.URLField(max_length=256, allow_blank=True, required=False) mood = serializers.CharField(max_length=256, allow_blank=True, required=False) - github = serializers.CharField(max_length=64, allow_blank=True, required=False) + github = serializers.URLField(max_length=256, allow_blank=True, required=False) school = serializers.CharField(max_length=64, allow_blank=True, required=False) major = serializers.CharField(max_length=64, allow_blank=True, required=False) language = serializers.CharField(max_length=32, allow_blank=True, required=False)