This still ugly thing works, except for some reason 'digest-uri' comes
out as 'uri'

Any more ideas?

On Thu, Sep 18, 2008 at 11:16 AM, Eric Will <[EMAIL PROTECTED]> wrote:
> This is ugly, but it (kind of) works:
>
>   resp = Base64.decode64(elem.text)
>    re = /(\w+\s*=\s*(?:(?:"[^"]+")|(?:[^,]+)))/
>
>    m = re.match resp
>
>    response = {}
>    k, v = m[1].split('=',2)
>    v.gsub!(/^"(.*)"$/, '\1')
>    response[k] = v
>
>    while (m = re.match m.post_match)
>        k, v = m[1].split('=',2)
>        v.gsub!(/^"(.*)"$/, '\1')
>        response[k] = v
>    end
>
> Unfortunately, it also kills the '=' on cnonce.
>
_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
_______________________________________________

Reply via email to