You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently since store_location_for assumes the successfully parsed URI has a non-nil path, it causes the following exception when dealing with data URIs:
store_location_for:user,"data:text/plain;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4="NoMethodError: undefinedmethod`sub' for nil:NilClass.../devise-3.5.10/lib/devise/controllers/store_location.rb:38:in `store_location_for'
Currently since
store_location_for
assumes the successfully parsed URI has a non-nilpath
, it causes the following exception when dealing with data URIs:Would you accept a PR that addresses this?
One potential solution would be to replace:
With:
Since Data URIs don't contain a path, they'll simply return an empty string as do absolute URIs currently.
The text was updated successfully, but these errors were encountered: