code: def _sanitize_url_components(comp_list, field):
      '''
      Recursive function to sanitize each component of the url.
      '''
      if not comp_list:
          return ''
      elif comp_list[0].startswith('{0}='.format(field)):
          ret = '{0}=XXXXXXXXXX&'.format(field)
          comp_list.remove(comp_list[0])
          return ret + _sanitize_url_components(comp_list, field)
      else:
          ret = '{0}&'.format(comp_list[0])
          comp_list.remove(comp_list[0])
          return ret + _sanitize_url_components(comp_list, fieldf _sanitize_url_components(comp_list, field):
      '''
      Recursive function to sanitize each component of the url.
      '''
      if not comp_list:
          return ''
      elif comp_list[0].startswith('{0}='.format(field)):
          ret = '{0}=XXXXXXXXXX&'.format(field)
          comp_list.remove(comp_list[0])
          return ret + _sanitize_url_components(comp_list, field)
      else:
          ret = '{0}&'.format(comp_list[0])
          comp_list.remove(comp_list[0])
          return ret + _sanitize_url_components(comp_list, field)
docs: Recursive function to sanitize each component of the url.