-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove url encoding, it was double encoding
- Loading branch information
jeromechoo
committed
Jan 23, 2024
1 parent
7702579
commit 9f1ea68
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ def feeds(): | |
} | ||
except Exception as e: | ||
flash(str(e), 'Error') | ||
return render_template('home.html', url_encoded=quote_plus(request.args.get('url', '')), feed_detail=feed_detail, actual_rss_url=actual_rss_url) | ||
return render_template('home.html', page_url=request.args.get('url', ''), feed_detail=feed_detail, actual_rss_url=actual_rss_url) | ||
|
||
@app.route('/rss') | ||
@limiter.limit("1/second", error_message='Rate limit exceeded') | ||
|
@@ -105,7 +105,7 @@ def generate_feed(url): | |
fg.id(feed_url) | ||
fg.description(feed_description) | ||
fg.icon(feed_icon) | ||
fg.link(href=f"https://rss.diffbot.com/rss?url={quote_plus(feed_url)}", rel='self') | ||
fg.link(href=f"https://rss.diffbot.com/rss?url={feed_url}", rel='self') | ||
fg.link(href=feed_url, rel='alternate') | ||
fg.managingEditor(managingEditor="[email protected] (Jerome Choo)") | ||
fg.docs(docs="https://rss.diffbot.com") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters