Giter VIP home page Giter VIP logo

secure-https's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

secure-https's Issues

Unable to view images when "Proxy images through HTTPS" is on

Bug Report

Current Behavior
Users excpet admin are unable to view images when "Proxy images through HTTPS" is on.

Steps to Reproduce

  1. Enable "Proxy images through HTTPS" in settings.
  2. Log out and check images in posts.

Expected Behavior
All users with "viewForum" permission should be able to view images via through proxy.

Environment

  • Flarum version: 1.6.2
  • Extension version: 1.1.0

Possible solution(s)

The problem is at

$actor->assertCan('viewForum ');

remove extra space in 'viewForum ' .

FoF Secure HTTPS breaks the image BBCode.

When using FoF Secure HTTPS, BBCode Images do not work,

Steps to reproduce:

  1. Enable Secure HTTPS
  2. On ANY thread, embed a BBCode image as follows: [img]{URL}[/img]
  3. Save the post, and check the image.

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

HTTPS replacement doesn't work if bbcode extension is disabled

Bug Report

Current Behavior
The original http:// link is left completely untouched if Markdown is used while BBcode is disabled.

Steps to Reproduce

  1. Disable proxy feature
  2. Disable bbcode extension
  3. Insert HTTP image using Markdown or AutoImage

Expected Behavior
Should be supported.

Environment

  • Flarum version: 1.6.0
  • Extension version: dev-main
Output of "php flarum info", run this in terminal in your Flarum directory.

Possible solution(s)
The problem is at

protected $regex = '/<img src="http:\/\/(.+?)" title="(.*?)" alt="(.*?)">/';

When the bbcode extension is disabled, images don't have a title attribute and the regex never matches anything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.