fix email with + when active (#17518)
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		
					parent
					
						
							
								cb9c8184c9
							
						
					
				
			
			
				commit
				
					
						e69521f029
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -498,6 +498,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
 | 
			
		|||
			}
 | 
			
		||||
			return sum
 | 
			
		||||
		},
 | 
			
		||||
		"QueryEscape": url.QueryEscape,
 | 
			
		||||
	}}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
	<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
{{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code .Email}}
 | 
			
		||||
{{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code (QueryEscape .Email)}}
 | 
			
		||||
<body>
 | 
			
		||||
	<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
 | 
			
		||||
	<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue