mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
uri encode email and project names used in shared url
This commit is contained in:
parent
49b5d99a0a
commit
c68f2661a8
1 changed files with 3 additions and 3 deletions
|
@ -106,9 +106,9 @@ module.exports = class ProjectHandler
|
|||
project:
|
||||
name: project.name
|
||||
url: "#{Settings.siteUrl}/project/#{project._id}?" + [
|
||||
"project_name=#{project.name}"
|
||||
"user_first_name=#{project.owner_ref.first_name}"
|
||||
"new_email=#{email}"
|
||||
"project_name=#{encodeURIComponent(project.name)}"
|
||||
"user_first_name=#{encodeURIComponent(project.owner_ref.first_name)}"
|
||||
"new_email=#{encodeURIComponent(email)}"
|
||||
"r=#{project.owner_ref.referal_id}" # Referal
|
||||
"rs=ci" # referral source = collaborator invite
|
||||
].join("&")
|
||||
|
|
Loading…
Reference in a new issue