forked from CIT/Vmeda.Online
		
	MOBILE-3068 core: Decode URL params on links handlers
This commit is contained in:
		
							parent
							
								
									1c088deeed
								
							
						
					
					
						commit
						2c63478f47
					
				| @ -50,7 +50,7 @@ export class AddonModWikiEditLinkHandler extends CoreContentLinksHandlerBase { | |||||||
| 
 | 
 | ||||||
|                 let section = ''; |                 let section = ''; | ||||||
|                 if (typeof params.section != 'undefined') { |                 if (typeof params.section != 'undefined') { | ||||||
|                     section = this.textUtils.decodeURIComponent(params.section.replace(/\+/g, ' ')); |                     section = params.section.replace(/\+/g, ' '); | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 const pageParams = { |                 const pageParams = { | ||||||
|  | |||||||
| @ -79,7 +79,7 @@ export class CoreUrlUtilsProvider { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         urlAndHash[0].replace(regex, (match: string, key: string, value: string): string => { |         urlAndHash[0].replace(regex, (match: string, key: string, value: string): string => { | ||||||
|             params[key] = typeof value != 'undefined' ? value : ''; |             params[key] = typeof value != 'undefined' ? this.textUtils.decodeURIComponent(value) : ''; | ||||||
| 
 | 
 | ||||||
|             if (subParams) { |             if (subParams) { | ||||||
|                 params[key] = params[key].replace(subParamsPlaceholder, subParams); |                 params[key] = params[key].replace(subParamsPlaceholder, subParams); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user