[PATCH] ids.cgi: Improve add provider logic