hashtag breaks the link standing before
Created by: Flashwalker
I found strange parsing thing:
If i post a message via curl like this:
htmlstatus="<p>test <br />https://url1.com <br />bla-bla-bla <br />https://url2.com <br />bla-bla-bla <br />https://url3.com</p><br><br>#tag1 #tag2 #tag3 "
curl -ksS -H "Authorization: Basic $token" \
-X POST \
-d "title=${title}&category=${category}&channel=$channel" \
--data-urlencode "htmlstatus=$htmlstatus" \
"$hub"/api/statuses/update \
--cookie-jar "$cookie" --cookie "$cookie"
I have last url smashed together with first hashtag:
test
#^https://url1.com
bla-bla-bla
#^https://url2.com
bla-bla-bla
#^[url=https://url3.com
#tag1]https://url3.com
#tag1[/url] #tag2 #tag3
But if i'll ad a space right after last url in message:
htmlstatus="<p>test <br />https://url1.com <br />bla-bla-bla <br />https://url2.com <br />bla-bla-bla <br />https://url3.com </p><br><br>#tag1 #tag2 #tag3 "
It's ok:
test
#^https://url1.com
bla-bla-bla
#^https://url2.com
bla-bla-bla
#^https://url3.com
#tag1 #tag2 #tag3