summaryrefslogtreecommitdiff
path: root/cuturl.c
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-11-11 19:22:31 -0600
committerepochqwert <epoch@hacking.allowed.org>2015-11-11 19:22:31 -0600
commit4f05827c8b10d07cd9bc04424922a4dba4f728ab (patch)
treef12bc6c4b513082c2b86b9e585ed0d9f9e306e14 /cuturl.c
parent5dfc7b3d38d4ce0061ffb8166e640498ffdb46e3 (diff)
downloaduritools-4f05827c8b10d07cd9bc04424922a4dba4f728ab.tar.gz
uritools-4f05827c8b10d07cd9bc04424922a4dba4f728ab.zip
added D flag to matchurl and added an ifdef to cuturl
Diffstat (limited to 'cuturl.c')
-rw-r--r--cuturl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cuturl.c b/cuturl.c
index 3f09020..95d96ad 100644
--- a/cuturl.c
+++ b/cuturl.c
@@ -123,6 +123,7 @@ int main(int argc,char *argv[]) {
// printf("scheme://username:password@domain:port/path?query_string#fragment_id\n\n");
//let's set them to what'll get printed now...
+#ifdef MAGIC
u.scheme=AorB(u.scheme,AorB(getenv("CUTURL_SCHEME"),"DEFAULT"));
u.username=AorB(u.username,AorB(getenv("CUTURL_USERNAME"),"DEFAULT"));
u.password=AorB(u.password,AorB(getenv("CUTURL_PASSWORD"),"DEFAULT"));
@@ -133,6 +134,7 @@ int main(int argc,char *argv[]) {
u.path=AorB(u.path,AorB(getenv("CUTURL_PATH"),"DEFAULT"));
u.query_string=AorB(u.query_string,AorB(getenv("CUTURL_QUERY_STRING"),"DEFAULT"));
u.fragment_id=AorB(u.fragment_id,AorB(getenv("CUTURL_FRAGMENT_ID"),"DEFAULT"));
+#endif
if((name[0]=getenv("CUTURL__"))) {
setenv("CUTURL__SCHEME",u.scheme,1);