Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Fix the article URL in the html content#13

Merged
skx merged 1 commit intoskx:masterfrom
DaleFarnsworth:fix_article_html_url
Aug 4, 2020
Merged

Fix the article URL in the html content#13
skx merged 1 commit intoskx:masterfrom
DaleFarnsworth:fix_article_html_url

Conversation

@DaleFarnsworth
Copy link

The bare '=' in <a href="...> was being swallowed up by the conversion
to quoted-printable decoding. Change it to "=3D" which is '=' in
quoted-printable encoding.

This commit fixes #12.

@skx
Copy link
Owner

skx commented Aug 4, 2020

Looks good to me, thanks for your pull-request. Will merge when it passes the CI, and I get back home in a few hours.

I suspect there's another update that needs to be done, for the case where the URL itself contains an equals. Something like this:

 -               x.Link = link
+               x.Link = toQuotedPrintable(link)

If you add it that'd be appreciated; otherwise I'll do that myself later this evening.

DaleFarnsworth pushed a commit to DaleFarnsworth/rss2email that referenced this pull request Aug 4, 2020
Add a -from="email_address" flag to specify an email address that
emails are sent from.  If not specified, the From: address in each
email will still be the same as the To: address.

This commit fixes skx#13.
The bare '=' in <a href="...> was being swallowed up by the conversion
to quoted-printable decoding.  Change it to "=3D" which is '=' in
quoted-printable encoding.

Similarly if the link contains an '=' would be removed. So we encode
the link in quotate-printable format.

This commit fixes skx#12.
@skx skx merged commit d2bcf8e into skx:master Aug 4, 2020
@DaleFarnsworth DaleFarnsworth deleted the fix_article_html_url branch August 5, 2020 22:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The url at the beginning and end of html content is not a correct link.

2 participants