[Adium-devl] Where do URLs in messages get formatted?

Stephen Holt stephen.holt at gmail.com
Thu Oct 4 16:25:54 UTC 2007


Yeah, and currently somthing's escaping those brackets.

The scanning class may need to be modified with another link type to  
prevent that.

--
Stephen Holt
stephen.holt at gmail.com
http://cloggedtubes.com

On Oct 4, 2007, at 11:45 AM, Andre-John Mas <ajmas at sympatico.ca> wrote:

> It should be noted that an IPv6 address in a URL should be surrounded
> by square brackets. For example:
>
>  http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]/
>
> so with a port, specified, here being 8080:
>
>  http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:8080/
>
> BTW I had written a URL parse for IPv6 addresses in the past, in Java.
> If anyone is interested in the source I can send it to them.
>
> Andre
>
> On 3-Oct-07, at 16:47 , Stephen Holt wrote:
>
>> Not that ive seen, though the extent of my search was the email and
>> ticket.
>>
>> We don't currently match IPv6 in adium though, and generalizing the
>> existing IP pattern isn't worth it, IMHO.
>>
>> --
>> Stephen Holt
>> stephen.holt at gmail.com
>> http://cloggedtubes.com
>>
>> On Oct 3, 2007, at 4:39 PM, Chris Forsythe <chris at growl.info> wrote:
>>
>>> There's no regex out there that already handles this, or something
>>> similar?
>>>
>>> Chris
>>>
>>> Stephen Holt wrote:
>>>
>>>> Just looking at the valid addresses from
>>>> ftp://ftp.isi.edu/in-notes/rfc2732.txt, the valid formats for an  
>>>> IPv6
>>>> address can be any of the following:
>>>>
>>>> FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
>>>> 1080:0:0:0:8:800:200C:4171
>>>> 3ffe:2a00:100:7031::1
>>>> 1080::8:800:200C:417A
>>>> ::192.9.5.5 <http://192.9.5.5>
>>>> ::FFFF:129.144.52.38 <http://129.144.52.38>
>>>> 2010:836B:4179::836B:4179
>>>>
>>>> A quick and dirty pattern for an IPv6 literal might look like this:
>>>>
>>>> ([a-zA-Z0-9]{0,4}:){2,7}[a-zA-Z0-9]{0,4}(([0-9]{1,3}\.){3}[0-9]
>>>> {1,3})?
>>>>
>>>> though, given that, we might want to restructure the pattern  
>>>> matching
>>>> macros to "simplify" them a little.
>>>>
>>>> I'm swamped at work this week, but I have a long weekend coming up.
>>>> I'd be willing to hack on this and look at that other hyperlink
>>>> ticket.
>>>>
>>>> --Steve Holt
>>>>
>>>> On 10/3/07, *Zachary West* <zacwest at gmail.com
>>>> <mailto:zacwest at gmail.com>> wrote:
>>>>
>>>>   On 10/3/07, *Chris Stewart* <cstewart913 at gmail.com
>>>>   <mailto:cstewart913 at gmail.com>> wrote:
>>>>
>>>>       With respect to #7491 (http://trac.adiumx.com/ticket/7491),
>>>>       I'm trying to find where URLs, IPs, etc, are formatted as a
>>>>       hyperlink before being sent to a contact.
>>>>
>>>>
>>>>   URLs are parsed using Lex. You can find the grammar, as well as
>>>>   the objective-c source, at in Frameworks/AIHyperlinks.Framework.
>>>>
>>>>   Zac
>>>>
>>>>
>>>>
>>>>   _______________________________________________
>>>>   Adium-devl mailing list
>>>>   Adium-devl at adiumx.com <mailto:Adium-devl at adiumx.com>
>>>>   http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>>>>
>>>>
>>>> ---
>>>> --- 
>>>> ------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Adium-devl mailing list
>>>> Adium-devl at adiumx.com
>>>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Adium-devl mailing list
>>> Adium-devl at adiumx.com
>>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>>
>> _______________________________________________
>> Adium-devl mailing list
>> Adium-devl at adiumx.com
>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>




More information about the devel mailing list