Commit Graph

45 Commits

Author SHA1 Message Date
Diogo Sousa e4b6f4b375 Refined IPv6 address matching in url.c. 2013-06-16 20:16:58 +01:00
Diogo Sousa 32dee82c58 Added support for passwords in userinfo of urls. 2013-06-16 20:00:35 +01:00
Diogo Sousa 2870586cf9 Fixed irc:// and ircs:// url matching: irc://freenode was not working because
"freenode" doesn't match a hostname.
2013-06-16 19:11:26 +01:00
Diogo Sousa cb1975f450 Fixed file:// url matching. 2013-06-16 19:09:50 +01:00
Diogo Sousa 805b33552b Rework url matching to make it easier to add schemes.
The new way allows great control of what a url is composed of.

Added a bunch of new schemes.
2013-06-16 15:36:52 +01:00
Diogo Sousa 6bc05a8bc8 Improved host matching in url:
* Refined ipv4 addr
 * Added ipv6 addr
2013-06-16 04:22:28 +01:00
RichardHitt e17a9c6503 In do_an_re() put WORD_CHANNEL before WORD_HOST. fixes #440 2013-04-19 12:41:49 -07:00
RichardHitt 6b86940b7b Allow nick starting with digit despite rfc 2812 violation 2013-04-06 11:51:22 -07:00
RichardHitt 3fee94473b Don't clobber data, just adjust url endpoint 2013-03-31 12:14:52 -07:00
RichardHitt 503968c1fd Strip all \r and \n, not just a single \r. 2013-03-29 13:11:17 -07:00
TingPing b5f78f484d Fix relative paths on windows 2013-03-11 13:55:29 -03:00
RichardHitt 8e3d039199 Fix bug in url.c at re_host().
Unlike the other re_foo() functions it was not checking immediately
and returning if host_ret had already been filled in.  This would
causes a memory leak since the previous GRegex would be lost.
2013-02-13 12:52:49 -08:00
TingPing ce31c6dce6 only detect full paths on windows.
closes #302
2013-01-31 23:58:18 -05:00
TingPing 8b451edf9c Merge pull request #377 from RichardHitt/issue376
Parse url according to rfc 1738: add separate define for TLD.  Closes 376.
2013-01-16 14:06:50 -08:00
RichardHitt 7bc0e017f6 Oops. didn't get the DOMAIN slight change last time. Here it is now. 2013-01-15 13:26:11 -08:00
RichardHitt bb617ccacd Prev called anything a URL! Reverted but slight DOMAIN change. 2013-01-15 13:19:29 -08:00
RichardHitt d5fbea3411 Fix DOMAIN and TLD per rfc 1738, thanks Arnavion 2013-01-15 01:23:37 -08:00
RichardHitt be2d100d2d Parse url according to rfc 1738: add separate define for TLD. 2013-01-14 12:33:08 -08:00
RichardHitt 07b69fd2f8 Oops, Windows doesn't offer strndup(). Use g_strndup(). 2013-01-11 16:12:52 -08:00
RichardHitt 487ac0a011 Correct nick recognition. Closes 372. 2013-01-11 01:39:21 -08:00
Richard Hitt ccc82895ed Merge branch 'master' of http://github.com/RichardHitt/hexchat 2013-01-08 12:58:05 -08:00
Richard Hitt 5ec9d8534e Add "ircs://" to the list of URL schemes 2013-01-08 12:55:20 -08:00
RichardHitt 4bf2fbe092 Ywes, nicks can be as short as one character long! 2013-01-03 14:24:04 -08:00
RichardHitt 44d920592d For NICK0 use NICKSPE, not NICKDIG 2013-01-03 14:13:20 -08:00
RichardHitt f4c2c08ccb Also allow URLs of of the form \.[a-z]+\/ 2013-01-02 23:47:58 -08:00
RichardHitt 270a31535c I forgot to add case WORD_PATH to do_an_url()'s switch statement 2013-01-02 15:03:16 -08:00
RichardHitt 0e6add7dd6 Fix FSF address to be Franklin Street 2013-01-02 14:58:26 -08:00
RichardHitt 4af624627e overhauling of URL detection, including channel, nick, etc 'words' 2013-01-02 14:50:26 -08:00
Dan Mashal b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
Richard Hitt b59f9abd1a Limit url-grabbing to NOTICE, PRIVMSG, TOPIC, 332 (RPL_TOPIC), 372 (RPL_MOTD) 2012-11-13 12:06:35 -08:00
Berke Viktor cb0f6c8c91 Eliminate some more warnings 2012-10-30 21:25:58 +01:00
Berke Viktor a51a69134b Nah, even more rebranding 2012-10-30 11:35:39 +01:00
Berke Viktor 1a75c8e1be A lot more rebranding 2012-10-24 21:33:02 +02:00
Berke Viktor 51ae33cbe8 Variable cleanup for the rest 2012-10-22 15:55:43 +02:00
Berke Viktor dfd4828ad2 Fix opening folders in portable mode 2012-10-13 10:26:32 +02:00
Berke Viktor ca3fa043f0 Save URLs to disk on-the-fly and provide an option for toggling it 2012-10-13 10:03:39 +02:00
RichardHitt 5f60820eba Fix "Fix URL detection". First-character test in linux should be for
equal, rather than not-equal.  If first character is a slash return
WORD_PATH.
2012-10-08 12:20:11 -07:00
Berke Viktor 8df11c030c Fix Wikipedia URL detection - URLs inside parentheses won't work 2012-10-07 13:27:44 +02:00
Berke Viktor 59f32ccb3a Fix URL detection 2012-10-07 03:00:52 +02:00
RichardHitt 62903cd171 Fix memory leak related to url grabbing 2012-10-01 12:53:25 -07:00
Berke Viktor c745e4ea79 Remove duplicate extension entry 2012-07-11 23:33:56 +02:00
Alfred Daw 797f686296 Improve URL recognition (sacarasc) 2012-07-11 23:16:20 +02:00
Berke Viktor 35821f3875 Fix string handling for Turkish locale 2012-06-16 13:01:47 +02:00
Berke Viktor 1012be5efb update xchat to r1503 2012-03-15 23:58:52 +01:00
berkeviktor@aol.com 4a6ceffb98 add xchat r1489 2011-02-24 04:14:30 +01:00