franciskim / check-mixed-content Goto Github PK
View Code? Open in Web Editor NEWChecks for mixed HTTP / HTTPS content for SSL sanity. Very alpha.
Home Page: https://franciskim.co
Checks for mixed HTTP / HTTPS content for SSL sanity. Very alpha.
Home Page: https://franciskim.co
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.
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
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.