def rebuild_source(source, full_base_url):
    """ Completes the links on a web page. """
    source = source.replace('src="//', 'src="http://')
    source = source.replace('src="/', 'src="%s' % full_base_url)
    source = source.replace('src="../', 'src="%s' % full_base_url)
    source = source.replace('src="./', 'src="%s' % full_base_url)
    source = source.replace("src='//", "src='http://")
    source = source.replace("src='/", "src='%s" % full_base_url)
    source = source.replace("src='../", "src='%s" % full_base_url)
    source = source.replace("src='./", "src='%s" % full_base_url)
    return source
