add missing protocol for redirect
This commit is contained in:
		
							parent
							
								
									d3ef9fb032
								
							
						
					
					
						commit
						47de49e7e2
					
				@ -19,6 +19,7 @@ module.exports.scrubTheDub = function (req, res, redirectives) {
 | 
				
			|||||||
    if (!newLocation) {
 | 
					    if (!newLocation) {
 | 
				
			||||||
      return false;
 | 
					      return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    newLocation = 'http://' + newLocation;
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    newLocation = 'https://' + hostname.replace(/^www\./, '');
 | 
					    newLocation = 'https://' + hostname.replace(/^www\./, '');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user