Coder Social home page Coder Social logo

austinheap / wordpress-security-txt Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 1.54 MB

A plugin for serving `security.txt` in WordPress 4.9+, based on configuration settings. https://securitytext.org/

Home Page: https://wordpress.org/plugins/wp-security-txt/

License: MIT License

PHP 84.58% CSS 5.85% JavaScript 8.17% Makefile 1.40%
wordpress wordpress49 wordpress5 wordpress-plugin security security-txt php php7 php70 php71

wordpress-security-txt's Issues

PHP 7.2 Throws Error on sizeOf()

Running PHP 7.2, getting an error due to the use of "sizeOf()" against a non-countable variable in class-wordpress-security-txt-public.php.

Line 234 replace "sizeOf()" with "strlen()" to make it work with PHP 7.2.

header('Content-Length: ' . sizeof($output));
Becomes:
header('Content-Length: ' . strlen($output));

404 when trying to access .well-known/security.txt

First, thank you for this plugin - I was very happy to find it :)
I've just installed the plugin and enabled it on the setting section. For some reason, when I'm trying to access .well-known/security.txt, I got 404 error from nginx. The plugin is working, because the redirect from security.txt to .well-known/security.txt is working - just the security.txt is not rendered.

Those are my settings:

enable: true (string)
redirect: true (string)
menu: true (string)
contact: <redacted>(string)
encryption: (NULL)
acknowledgement: (NULL)
disclosure: full (string)
cache: true (string)
credits: true (string)
statistics: false (string)
debug: true (string)

And these are the cache settings:

Enabled: true (boolean)
Location: /tmp//wordpress-security-txt-cache.txt
Cleared: false
Exists: false

I've also tried to disable the cache - but this doesn't help. I looked on the code and couldn't find any logs that can help me understand what's going on. Can you please help me out?
Thanks in advance!

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.