friendsofflarum / secure-https Goto Github PK
View Code? Open in Web Editor NEWChanges all images using HTTP to HTTPS
Home Page: https://discuss.flarum.org/d/17771
License: MIT License
Changes all images using HTTP to HTTPS
Home Page: https://discuss.flarum.org/d/17771
License: MIT License
Current Behavior
Users excpet admin are unable to view images when "Proxy images through HTTPS" is on.
Steps to Reproduce
Expected Behavior
All users with "viewForum" permission should be able to view images via through proxy.
Environment
Possible solution(s)
The problem is at
remove extra space in 'viewForum '
.
When using FoF Secure HTTPS, BBCode Images do not work,
Steps to reproduce:
It's returning an image URL of : https://creatorswave.com/api/fof/secure-https/https%3A%2F%2Fwinaero.com%2Fblog%2Fwp-content%2Fuploads%2F2015%2F05%2FWindows-10-banner-logo-devs-04.png for example.
This leads to a broken image and also leads to the following error message on the site:
https://i.imgur.com/Y9YEkYo.png
Current Behavior
The original http://
link is left completely untouched if Markdown is used while BBcode is disabled.
Steps to Reproduce
Expected Behavior
Should be supported.
Environment
Output of "php flarum info", run this in terminal in your Flarum directory.
Possible solution(s)
The problem is at
secure-https/src/ModifyContentHtml.php
Line 25 in de4866f
When the bbcode extension is disabled, images don't have a title
attribute and the regex never matches anything.
In the ModifyContentHtml
subscriber, UrlGenerator
is resolved during the extension booting
sequence, preventing any more extension from registering routes. This means all routes defined by extensions enabled after secure-https will return 404 errors.
Current Behavior
Non-admins can't use the image proxy.
Possible solution(s)
We use viewDiscussions
permission which as renamed to viewForum
in Flarum.
Additional Context
Report https://discuss.flarum.org/d/17771-friendsofflarum-secure-https/29
The cache rules in the officially recommended nginx configuration may causes api route to fail.
There is 404 error when the https proxy is enabled and using the recommended nginx configuration.
I am confused about this issue and cannot understand how the problem is caused.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.