indieweb / indieweb/wordpress-micropub
Presence of <SVG in POSTed content results in 403
- Dominant language
- PHP
- Stars
- 53
- Forks
- 12
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 7
Description
I've created a basic PHP Micropub client to talk to my WordPress Micropub endpoint. It uses form-urlencoded and calls the endpoint with file_get_contents()
This works all as intended.
When I include an SVG icon in the html content however the endpoint returns a 403 error. It was pointed out to me that this might be an issue with WP core, not with the plugin ( https://core.trac.wordpress.org/ticket/30377 https://core.trac.wordpress.org/ticket/54244 ). However that seems to be about GET requests and urls, not POST requests.
Original HTML that results in 403:
'` Some text here`'
but pairing it down showed that
'`some text more text`'
also gets a 403 and even
'`some text
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the POST to the WordPress Micropub endpoint with the minimal `
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100