Skip to content

SimplePie logging of HTTP requests#815

Merged
Alkarex merged 6 commits intoFreshRSS:devfrom
Alkarex:Logging
May 9, 2015
Merged

SimplePie logging of HTTP requests#815
Alkarex merged 6 commits intoFreshRSS:devfrom
Alkarex:Logging

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Mar 22, 2015

#711
New option (in FreshRSS and in SimplePie) to turn on/off the logging (via syslog) of HTTP requests done by SimplePie.
Passwords are removed from URLs before logging. The regular expression has been slightly updated since #715 (should be faster and safer), taking advantage of RFC 3986.

Alkarex added 3 commits March 22, 2015 23:53
Can simplify the regex (faster because anchored) for cleaning URLs based
on the fact that we only have to deal with HTTP or HTTPS
Can simplify the regex (faster because anchored) for cleaning URLs based
on the fact that we only have to deal with HTTP or HTTPS
FreshRSS#715
@Alkarex
Copy link
Member Author

Alkarex commented Apr 4, 2015

Any comment on this patch? I have to make some changes for #798, which will conflict with this patch if not committed before.

Alkarex added a commit that referenced this pull request May 9, 2015
SimplePie logging of HTTP requests
@Alkarex Alkarex merged commit e0f9621 into FreshRSS:dev May 9, 2015
@Alkarex Alkarex deleted the Logging branch May 9, 2015 22:06
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request May 9, 2015
@Alkarex Alkarex added this to the 1.1.1 milestone May 16, 2015
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Apr 17, 2021
The HTTP Referer might appear in various logs and should not contain HTTP credentials
`https://user:password@example.net/`

New function `SimplePie_Misc::url_remove_credentials($url)` to strip credentials from a URL, before such a use.

Piece of this downstream PR: FreshRSS/FreshRSS#815

(I use this function in several other circumpstances, which will be the topic of distinct PRs)
mblaney pushed a commit to simplepie/simplepie that referenced this pull request Apr 23, 2021
The HTTP Referer might appear in various logs and should not contain HTTP credentials
`https://user:password@example.net/`

New function `SimplePie_Misc::url_remove_credentials($url)` to strip credentials from a URL, before such a use.

Piece of this downstream PR: FreshRSS/FreshRSS#815

(I use this function in several other circumpstances, which will be the topic of distinct PRs)
Alkarex added a commit to Art4/FreshRSS that referenced this pull request Jun 18, 2024
Alkarex added a commit that referenced this pull request Sep 14, 2024
* rename lib/SimplePie to lib/CustomSimplePie

* add test for autoloading SimplePie with PSR-0

* install SimplePie 1.6.0

* Add SimplePie CHANGELOG.md, ignore irrelevant files

* remove unmodified custom classes

* rename all customized SimplePie classes

* Add autoloading for SimplePie PSR-0 and CustomSimplePie classes

* let CustomSimplePie extends SimplePie, remove unchanged code

* let CustomSimplePieMisc extends SimplePie\Misc, remove unchanged code

* Add tests for autoloading

* let CustomSimplePieContentTypeSniffer extends Sniffer, remove unchanged code

* remove unchanged CustomSimplePieEnclosure class

The fixed typos are commited to SimplePie
See simplepie/simplepie@133eac1

* let CustomSimplePieFile extends SimplePie\File, remove unchanged code

* let CustomSimplePieParser extends SimplePie\Parser, remove unchanged code

* let CustomSimplePieSanitize extends SimplePie\Sanitize, remove unchanged code

* let CustomSimplePieHttpParser extends SimplePie\HTTP\Parser, remove unchanged code

* Remove CustomSimplePie

* Switch SimplePie repo to https://github.com/FreshRSS/simplepie.git

* move to latest branch, update all SimplePie source files

* Use namespaced SimplePie classes, remove SimplePie library folder

* Update to latest SimplePie version with FreshRSS modifications

* Bump SimplePie
Tests expected to fail due to missing a backport of functionalities

* Add fork-specific readme

* Re-implement initial syslog SimplePie GET
#815
Lacks #6061

* Closer backport of syslog SimplePie GET
#6061
But the requests logs will be in the wrong order in case of redirections

* Fixes

* lib update

* SimplePie include a few more files

* Try with cache-hash branch

* Point to newer commit

* Point to newer commit

* Finalise logs

* Finalise

* Bump SimplePie commit

* Bump SimplePie commit

* Readme SimplePie fork

* Bump SimplePie commit

* Better logging

* Bump SimplePie commit

* Reworked approach to work with SimplePie cache
Simpler FreshRSS patches

* Bump SimplePie commit
FreshRSS/simplepie#22

* Simplepie846
FreshRSS/simplepie#23
And additional fixes

* Remove log

* Cherry pick relevant unmerged SimplePie PRs

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant