Commit Graph

6 Commits

Author SHA1 Message Date
223d2354ac Urls are unlikely to end with punctuation or closing braces, so strip any
2003-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (camel_url_web_end): Urls are unlikely to
	end with punctuation or closing braces, so strip any of those off
	the end of the url. Fixes bug #41461.

	* tests/mime-filter/data/html.1.out: Removed a trailing \n at the
	end of the file, this is incorrect (since out input file does not
	contain one).

	* camel-mime-filter-tohtml.c (html_convert): Only output a <br> if
	we found an eoln in the input. Along the same lines, don't write a
	'\n' to the output buffer unless we've encountered that eoln in
	the input. Fixes bug #41407.

svn path=/trunk/; revision=20882
2003-04-17 16:43:07 +00:00
67974fa1e0 Doh! If inptr == pos + 1, then return FALSE (before it was checking for
2003-03-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (camel_url_addrspec_end): Doh! If inptr ==
	pos + 1, then return FALSE (before it was checking for inptr ==
	pos, but it will never be pos).

svn path=/trunk/; revision=20225
2003-03-09 17:57:34 +00:00
8b79f2dff4 watch for <>'s too
svn path=/trunk/; revision=19914
2003-02-14 20:44:39 +00:00
e63ba441e6 Mark chars with the high-bit set as CTRL chars. (camel_url_web_end): If
2003-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (url_scanner_table_init): Mark chars with
	the high-bit set as CTRL chars.
	(camel_url_web_end): If the char before the start of the url is an
	open-brace, watch out for the matching close-brace.
	(camel_url_file_end): Same.

svn path=/trunk/; revision=19913
2003-02-14 20:42:51 +00:00
ed25ea4d31 Fixed to not be fooled in the case where the address is followed
2002-12-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (camel_url_addrspec_end): Fixed to not be
	fooled in the case where the address is followed immediately by a
	period.
	(camel_url_web_end): Made more robust.
	(camel_url_scanner_scan): Oops. We need to set the match->pattern
	string pointer to the correct pattern before executing the
	start/end methods (as some of them rely on this info).

svn path=/trunk/; revision=19077
2002-12-10 03:44:17 +00:00
d2971bf645 New code to scan for patterns (used only for url pattern matching atm, but
2002-12-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c: New code to scan for patterns (used only
	for url pattern matching atm, but we may find other uses for this
	and thus rename it? I dunno). Uses ETrie.

svn path=/trunk/; revision=19075
2002-12-09 23:18:31 +00:00