Discussion:
Posts from api/v1/posts/all are truncated due to not being escaped.
chrisjroos
2007-09-02 20:24:47 UTC
Permalink
I have a post whose notes contain some text followed by a caption in
quotes (e.g., my text, "my caption").

When I GET this post using api/posts/get?url=<my_url> the quotes are
HTML escaped. The note becomes: my text, &quot;my caption&quot;

When I GET this post using api/posts/all (either filtered by this
posts unique tag or within the whole bunch of posts), my note is
truncated to: my text. I.e. the "my caption" but is removed. I
assume that this is caused by some incorrect escaping before the
content is served.

I wonder if you could take a look, or just tell me I'm doing something
stoopid.

Cheers,

Chris
chrisjroos
2007-09-07 07:42:02 UTC
Permalink
So, having not received a reply, I thought I'd try again. It seems to
have been fixed! Purely out of interest, was there an actual problem
that's been fixed or was I doing something daft?

Chris
Post by chrisjroos
I have a post whose notes contain some text followed by a caption in
quotes (e.g., my text, "my caption").
When I GET this post using api/posts/get?url=<my_url> the quotes are
HTML escaped. The note becomes: my text, &quot;my caption&quot;
When I GET this post using api/posts/all (either filtered by this
posts unique tag or within the whole bunch of posts), my note is
truncated to: my text. I.e. the "my caption" but is removed. I
assume that this is caused by some incorrect escaping before the
content is served.
I wonder if you could take a look, or just tell me I'm doing something
stoopid.
Cheers,
Chris
Toby Elliott
2007-09-07 17:55:25 UTC
Permalink
While we made a small push yesterday, I don't think it would have had
an impact on your problem, which we're still investigating. However,
it looks like it's cleared itself up, so thanks for letting us know.

Regards,
Toby Elliott
del.icio.us
So, having not received a reply, I thought I'd try again. It seems to
have been fixed! Purely out of interest, was there an actual problem
that's been fixed or was I doing something daft?
Chris
Post by chrisjroos
I have a post whose notes contain some text followed by a caption in
quotes (e.g., my text, "my caption").
When I GET this post using api/posts/get?url=<my_url> the quotes are
HTML escaped. The note becomes: my text, &quot;my caption&quot;
When I GET this post using api/posts/all (either filtered by this
posts unique tag or within the whole bunch of posts), my note is
truncated to: my text. I.e. the "my caption" but is removed. I
assume that this is caused by some incorrect escaping before the
content is served.
I wonder if you could take a look, or just tell me I'm doing
something
Post by chrisjroos
stoopid.
Cheers,
Chris
[Non-text portions of this message have been removed]

Loading...