Comments (7)
@snarfed: Should I adjust getallheaders()
or lowercase its result in authorize()
?
from wordpress-micropub.
The getallheaders()
seems to already run a strtolower()
? https://github.com/snarfed/wordpress-micropub/blob/f91bd8c88a1e2ad0399745537ab7aa442d04a3aa/micropub.php#L555
from wordpress-micropub.
true! the bug is probably just that the 'Authorization'
s here should be 'authorization'
s.
from wordpress-micropub.
No, because it also does a ucwords(), but maybe a function name collision? Not the most unique of function names that one
7 sep. 2016 kl. 18:07 skrev Ryan Barrett [email protected]:
true! the bug is probably just that 'Authorization' here should be 'authorization'.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from wordpress-micropub.
here in my local installation, the micropub-provided getallheaders is not used. So while the mp-provided getallheaders Word-Cases
the header names (thus Authorization
would work), the one that's actually used does not.
from wordpress-micropub.
Ah. PHP itself defines it. http://php.net/getallheaders
from wordpress-micropub.
So lowercasing the result of this function is the correct way.
from wordpress-micropub.
Related Issues (20)
- Micropub Endpoint Returns 403 Response HOT 65
- HTML Content not Being Marked as Such on Return
- Tags and Categories HOT 4
- Broken README.md HOT 1
- `q=source` is not returning valid MF2 JSON for empty properties
- If a Post is Updated By a User Other Than the Original Creator Make sure the _edit_last property is set
- Support if Latitude, Longitude, and Altitude are Passed as top-level properties rather than as the location property. HOT 1
- Adjust return on q=source for media HOT 1
- Media Endpoitn returns 403 response HOT 2
- Refactor to Allow Content to Be Inserted into a Custom Location HOT 1
- Update Links in main file HOT 1
- Sideloading Images Not Working HOT 1
- Implement Cache-Control Headers on Queries
- mp-destination support
- Add visibility to q=config
- Update Media Endpoint Return HOT 1
- No Longer Store Entire Auth Response
- Presence of <SVG in POSTed content results in 403 HOT 7
- Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /[...]/wp-includes/formatting.php:1595 HOT 3
- Undefined variable: $props
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-micropub.