mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
Adjust some regular expressions
* Match beginning of string instead of beginning of line. * Escape literal periods.
This commit is contained in:
parent
4636b354b4
commit
bcd5040b11
@ -80,8 +80,8 @@ class UserOpenIdsController < ApplicationController
|
||||
data.merge!(info)
|
||||
end
|
||||
|
||||
trusted = open_id_response.endpoint.server_url =~ /^https:\/\/www.google.com\// ||
|
||||
open_id_response.endpoint.server_url =~ /^https:\/\/me.yahoo.com\//
|
||||
trusted = open_id_response.endpoint.server_url =~ /\Ahttps:\/\/www\.google\.com\// ||
|
||||
open_id_response.endpoint.server_url =~ /\Ahttps:\/\/me\.yahoo\.com\//
|
||||
|
||||
email = data[:email]
|
||||
user_open_id = UserOpenId.where(url: open_id_response.display_identifier).first
|
||||
|
Loading…
Reference in New Issue
Block a user