Giter Club home page Giter Club logo

check-mixed-content's Introduction

leonardo-motion.gif

check-mixed-content's People

Contributors

cschanaj avatar franciskim avatar galeksandrp avatar michaelkoelewijn91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

check-mixed-content's Issues

Untrustworthy results. Is this still maintained?

Thanks for your plugin.
However it is flawed.

let bad = false
let active = false
let $ = cheerio.load(data.body)
$('img').each(function () {
    if ($(this).attr('src')) bad = $(this).attr('src').indexOf('http:') > -1
    if ($(this).attr('srcset')) bad = $(this).attr('srcset').indexOf('http:') > -1
})

Imagine if there are 2 images on a page where the first triggers the variable bad to be set to true.
If the next image on the page is valid the variable bad will become false again.
This will not result in a mixed content warning while it should.

In my own project i have fixed this. Let me know if this repo is still maintained so i can send you a PR.

Maximum call stack size exceeded error

I'm getting the following error across multiple systems(windows/linux) when trying to run check-mixed-content. The test runs for awhile before eventually erroring on a random node_modules lib with a RangeError: Maximum call stack size exceeded error.

F:\check-mixed-content\node_modules\css-select\lib\general.js:20
                return function tag(elem){
                                   ^

RangeError: Maximum call stack size exceeded
    at tag (F:\check-mixed-content\node_modules\css-select\lib\general.js:20:22)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:87:6)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)
    at findAll (F:\check-mixed-content\node_modules\domutils\lib\querying.js:90:27)

Steps to reproduce

git clone https://github.com/franciskim/check-mixed-content.git
cd check-mixed-content/
npm install
node index.js --url qualcraft.com

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.