Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

allow redirects on Bridgy, Bridgy Fed, and appspot.com #119

Closed
wants to merge 40 commits into from

Conversation

snarfed
Copy link
Contributor

@snarfed snarfed commented Aug 11, 2023

fixes #118. as far as we can tell, this is probably the root cause of many of these bugs filed against webmention.io over the last couple years, https://github.com/aaronpk/webmention.io/issues , eg #188, #187, #175, #173, etc.

@aaronpk said:

That was apparently added 8 years ago
i vaguely remember some old issue with appspot URLs that I had to work around

that appspot URL issue was probably that it required SNI for SSL, which was less supported then, and much more widely supported now, so I'm pretty sure this change is ok.

cc @osak

hacdias and others added 30 commits October 8, 2020 13:02
`strpos(string, sub)` returns `false` if `sub` is not present in `string`. In this case, we want to check if `sub` is not a *prefix* of `string`. Hence, we just need to test if the returned position is simply different from 0.
The test is checking for notes, but 'Bridge Fed' is, in fact, an article according to the post discovery algorithm. Also, I'm adding as note that the main difference between a note and an article is that the latter has a title, while the first doesn't.
Updates to support php 8 anc CI
* Added isImgAlt static method to Formats\Mf2
* Used it in collectArrayURLValues and getPlaintext to handle cases where
  img+alt structures are encountered

Additionally disabled reporting of deprecation warnings while testing for
a cleaner output. All tests are passing.
* Default options are applied to calls to parse(), rels(), feeds() and process()
* Default options are overridden by options passed to the respective function call on a
  property-by-property basis
* Documented in README with example
* Added basic test (only for parse() behaviour)
* Also fixed a bug causing an error processing h-cards with no URL property
barnabywalters and others added 10 commits November 5, 2022 22:40
Allow installation alongside php-mf2 v0.5
Used default options for fetching as well as parsing
fixes aaronpk#118. as far as we can tell, this is probably the root cause of many of these bugs filed against webmention.io over the last couple years, https://github.com/aaronpk/webmention.io/issues , eg #188, #187, #175, #173, etc.

@aaronpk [said](https://chat.indieweb.org/dev/2023-08-07#t1691382116891200):
> That was apparently added 8 years ago
> i vaguely remember some old issue with appspot URLs that I had to work around

that appspot URL issue was probably that it required SNI for SSL, which was less supported then, and much more widely supported now, so I'm pretty sure this change is ok.

cc @osa_k
@snarfed snarfed force-pushed the allow-bridgy-redirects branch from fb4487e to c247379 Compare August 11, 2023 19:57
@snarfed
Copy link
Contributor Author

snarfed commented Aug 11, 2023

Dunno what git/GitHub did here but it's not right. Closing in favor of #120.

@snarfed snarfed closed this Aug 11, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants