comparison src/html.c @ 2060:2fe660574083

[gaim-migrate @ 2070] Yo committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 20 Jun 2001 16:56:34 +0000
parents 060161a5d5f8
children b66aca8e8dce
comparison
equal deleted inserted replaced
2059:0b3d7233a356 2060:2fe660574083
78 char port[5]; 78 char port[5];
79 int f; 79 int f;
80 80
81 if (strstr(url, "http://")) 81 if (strstr(url, "http://"))
82 g_snprintf(scan_info, sizeof(scan_info), 82 g_snprintf(scan_info, sizeof(scan_info),
83 "http://%%[A-Za-z0-9.]:%%[0-9]/%%[A-Za-z0-9.~_-/&%%?]"); 83 "http://%%[A-Za-z0-9.]:%%[0-9]/%%[A-Za-z0-9.~_-/&%%?=+]");
84 else 84 else
85 g_snprintf(scan_info, sizeof(scan_info), 85 g_snprintf(scan_info, sizeof(scan_info),
86 "%%[A-Za-z0-9.]:%%[0-9]/%%[A-Za-z0-9.~_-/&%%?]"); 86 "%%[A-Za-z0-9.]:%%[0-9]/%%[A-Za-z0-9.~_-/&%%?=+^]");
87 f = sscanf(url, scan_info, test.address, port, test.page); 87 f = sscanf(url, scan_info, test.address, port, test.page);
88 if (f == 1) { 88 if (f == 1) {
89 if (strstr(url, "http://")) 89 if (strstr(url, "http://"))
90 g_snprintf(scan_info, sizeof(scan_info), 90 g_snprintf(scan_info, sizeof(scan_info),
91 "http://%%[A-Za-z0-9.]/%%[A-Za-z0-9.~_-/&%%?]"); 91 "http://%%[A-Za-z0-9.]/%%[A-Za-z0-9.~_-/&%%?=+^]");
92 else 92 else
93 g_snprintf(scan_info, sizeof(scan_info), 93 g_snprintf(scan_info, sizeof(scan_info),
94 "%%[A-Za-z0-9.]/%%[A-Za-z0-9.~_-/&%%?]"); 94 "%%[A-Za-z0-9.]/%%[A-Za-z0-9.~_-/&%%?=+^]");
95 f = sscanf(url, scan_info, test.address, test.page); 95 f = sscanf(url, scan_info, test.address, test.page);
96 g_snprintf(port, sizeof(test.port), "80"); 96 g_snprintf(port, sizeof(test.port), "80");
97 port[2] = 0; 97 port[2] = 0;
98 } 98 }
99 if (f == 1) { 99 if (f == 1) {