Andrew Dolgov
cbcb10a272
Feeds: load quickaddfeed and search dialogs via XHR w/ CSRF protection
4 years ago
Andrew Dolgov
8080c525fd
- backend: require CSRF token to be passed via POST
...
- do not leak CSRF token via GET request in feed debugger
- rework Article/redirect to use POST
4 years ago
Andrew Dolgov
aeaafefa07
don't pass csrf token as a GET parameter to Article
4 years ago
Andrew Dolgov
e670ac2ee5
require CSRF token for Article/redirect
4 years ago
Andrew Dolgov
7e50c6c4b5
- enable CSRF support earlier
...
- remove rpc/sanityCheck from CSRF-excluded calls
4 years ago
Andrew Dolgov
91e1542a82
af_proxy_http: require separate token to access imgproxy
4 years ago
Andrew Dolgov
1621abcffc
rewrite_relative_url: validate resulting absolutized URLs
4 years ago
Andrew Dolgov
aa89ea7769
validate_url: only allow safe ports (80, 443), disallow access to loopback
4 years ago
Andrew Dolgov
6c02fea641
validate_url: add clean()
4 years ago
Andrew Dolgov
4abc7d7898
rename base64_img() to image_to_base64()
4 years ago
Andrew Dolgov
79f102c25d
af_proxy_http: never print received data directly, always redirect to cached_url
...
cache/getUrl: basename() passed filename just in case
4 years ago
Andrew Dolgov
1ee458b5c1
cached_url: perform mimetype validation before possible HOOK_SEND_LOCAL_FILE hooks
4 years ago
Andrew Dolgov
0758397dd8
af_redditimgur: don't add embedded blank gif image for rewritten videos
4 years ago
Andrew Dolgov
4a074111b5
user preferences: forbid < and > characters when changing passwords (were silently stripped on save because of clean())
4 years ago
Andrew Dolgov
da98ba662e
public/subscribe: require valid CSRF token when validating the form
4 years ago
Andrew Dolgov
b4cb67e77f
remove csrf token from rpc method sanityCheck
4 years ago
Andrew Dolgov
c3d14e1fa5
- fix multiple vulnerabilities in af_proxy_http
...
- fix vulnerability in rewrite_relative_url() which prevented some URLs from being properly absolutized
- fetch_file_contents: validate all URLs before requesting them
- validate URLs: explicitly whitelist http and https scheme, forbid everything else
- DiskCache/cached_url: only serve whitelisted content types (images, video)
- simplify filename/URL handling code, remove and consolidate some less-used functions
4 years ago
Andrew Dolgov
5b17fdc362
Merge branch 'weblate-integration'
4 years ago
Andrew Dolgov
a922b3cc6d
order_to_override_query: allow HOOK_HEADLINES_CUSTOM_SORT_OVERRIDE plugins to override built-in sorting
4 years ago
Andrew Dolgov
67f02e2aa7
properly return counters for labels with zero assigned articles
...
refs https://community.tt-rss.org/t/label-counter-doesnt-update-when-count-goes-down-to-zero/3766
4 years ago
fox
5497a137de
Merge branch 'master' of rodneys_mission/tt-rss into master
4 years ago
Rodney Stromlund
88ced02622
Silence php 7.2 error message generated in `session_set_cookie_params`.
4 years ago
Andrew Dolgov
ddf9227dc4
pluginhost: allow overriding default sort modes via HOOK_HEADLINES_CUSTOM_SORT_MAP etc
4 years ago
Andrew Dolgov
dfa65e9374
move order_by to SQL override logic into a separate function
4 years ago
Andrew Dolgov
48be005774
instead of taking batch timestamp and score (?) into account, make oldest first sorting work consistently with newest first - i.e. rely on feed-provided timestamp
4 years ago
Andrew Dolgov
05a47e5cf4
OPML: export/import per-feed purge interval
4 years ago
fox
2b50aaed61
Merge branch 'master' of e1e0/tt-rss into master
4 years ago
Paco Esteban
c4ee0e25a1
more int/string type mismatches on getCategories
4 years ago
fox
86ba8a96c4
Merge branch 'master' of e1e0/tt-rss into master
4 years ago
Marek Pavelka
f99de985c1
Translated using Weblate (Czech)
...
Currently translated at 100.0% (727 of 727 strings)
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/cs/
4 years ago
Paco Esteban
3da618e0ea
make sure all ints are casted (to int) on getCategories
4 years ago
Jan Espen Pedersen
68ccc8f636
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 44.7% (325 of 727 strings)
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/nb_NO/
4 years ago
fox
376fe6271d
Merge branch 'master' of rodneys_mission/tt-rss-fix-sanity-urls into master
4 years ago
Rodney Stromlund
376dce02bb
Update wiki and forums links in error message.
4 years ago
fox
3b033a17f4
Merge branch 'feed-tree-localstorage' of nanaya/tt-rss into master
4 years ago
nanaya
8d8affdc45
Store FeedTree data in localStorage
...
Patching internal functions of dijit.Tree as they don't provide option on where to store the data.
It stores to cookies by default but the data can get quite big for hundreds of feeds and exceeds cookies size limit.
Not to mention it'll cause the cookie to be sent during any request with nothing handling it server side and just wasting bandwidth.
This patch will also migrate current data in cookie to local storage accordingly.
4 years ago
Jan Espen Pedersen
6868b41cd5
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 44.7% (325 of 727 strings)
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/nb_NO/
4 years ago
Anonymous
ec970a6bc8
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 44.7% (325 of 727 strings)
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/nb_NO/
4 years ago
Jan Espen Pedersen
2d0424bfcf
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 44.4% (323 of 727 strings)
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/nb_NO/
4 years ago
fox
68b78ecd3d
Merge branch 'bugfix/invalid-opml' of wn/tt-rss into master
4 years ago
Andrew Dolgov
b6372a846d
when exporting OPML via web UI, add user login to the filename
4 years ago
Andrew Dolgov
fa653f5a43
prefs: show disabled filters properly on mysql
4 years ago
Andrew Dolgov
2996a3942f
prefs: show root of filter tree as enabled so it's not grayed out
4 years ago
wn_
614d3ac1bf
Properly check if OPML file was loaded during import.
4 years ago
Andrew Dolgov
c352e872e9
core: pass found enclosures to HOOK_ARTICLE_FILTER
...
af_redditimgur: remove enclosures if we found something to embed because it's going to be a low-res thumbnail
4 years ago
Andrew Dolgov
6eb94f1e13
better support for image srcset attributes as discussed in https://community.tt-rss.org/t/problem-with-img-srcset/3519
5 years ago
Andrew Dolgov
697418f863
more eslint fixes
5 years ago
Andrew Dolgov
d01ad09800
eslint-related fixes; move a few things from global context to App
5 years ago
Andrew Dolgov
88027d7a39
fix various minor issues reported by eslint
5 years ago
Andrew Dolgov
755662a9d7
add eslintrc
5 years ago