hiidef / oauth2app

Django OAuth 2.0 Server App. Please fork and improve!
https://github.com/hiidef/oauth2app
MIT License
271 stars 115 forks source link

Fixed exception with blank redirect_uri(blank string) #42

Open trezorg opened 11 years ago

trezorg commented 11 years ago

Hello. If redirect_uri parameter presents in url but is blank(redirect_uri=&scope....) then there is the exception in url_normalize function:

if url[0] not in ['/', '-'] and ':' not in url[:7]: IndexError: string index out of range