Skip to content

Instantly share code, notes, and snippets.

@Muffindrake
Created January 16, 2019 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Muffindrake/a4b8940e07e1f3cfc4b2c35cf73b4747 to your computer and use it in GitHub Desktop.
Save Muffindrake/a4b8940e07e1f3cfc4b2c35cf73b4747 to your computer and use it in GitHub Desktop.
diff --git a/poolf.c b/poolf.c
index 336e014..bc90b81 100644
--- a/poolf.c
+++ b/poolf.c
@@ -140,16 +140,8 @@ poolf_url(uint_least64_t pool, uint_least64_t page)
enum poolf_err
poolf_url_validate(const char url[static 1])
{
- CURLU *h;
- CURLUcode err;
-
if (strstr(url, "https://") != url)
return POOLF_ERR_URLMALF;
- h = curl_url();
- err = curl_url_set(h, CURLUPART_URL, url, 0);
- curl_url_cleanup(h);
- if (err != CURLUE_OK)
- return POOLF_ERR_URLMALF;
return POOLF_ERR_NONE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment