Project

General

Profile

« Previous | Next » 

Revision d50163d1

Added by koszko over 1 year ago

make exception for localhost while disallowing http:// repo urls

View differences:

html/text_entry_list.js
243 243
	if (!/^https:\/\//.test(repo_url))
244 244
	    error_msg = "Repository URLs shoud use https:// schema.";
245 245

  
246
	/* Make exception for localhost while disallowing http://. */
247
	if (/^http:\/\/(127\.0\.0\.1|localhost)([:/].*)?$/.test(repo_url))
248
	    error_msg = null;
249

  
246 250
	if (error_msg) {
247 251
	    dialog.error(dialog_ctx, error_msg);
248 252
	    throw error_msg;

Also available in: Unified diff