mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	[i18n] fix addresshelper
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
		
							parent
							
								
									a4b84517dc
								
							
						
					
					
						commit
						2db035d23c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -217,7 +217,8 @@ namespace proxy {
 | 
			
		|||
		b64 = i2p::http::UrlDecode(value);
 | 
			
		||||
		// if we need update exists, request formed with update param
 | 
			
		||||
		if (params["update"] == "true") { len += std::strlen("&update=true"); confirm = true; }
 | 
			
		||||
		url.query.replace(pos - 1, len + 1, ""); // +-1 for taking ? and & before parameter
 | 
			
		||||
		if (pos != 0 && url.query[pos-1] == '&') { pos--; len++; } // if helper is not only one query option
 | 
			
		||||
		url.query.replace(pos, len, "");
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue