richardvasquez / kses Goto Github PK
View Code? Open in Web Editor NEWkses stops evil scripts
License: GNU General Public License v2.0
kses stops evil scripts
License: GNU General Public License v2.0
Hi, it seems that some bits of the code were deprecated in 5.6 and 5.5 versions.
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/...path.../php5.class.kses.php on line 542
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/...path.../php5.class.kses.php on line 158
Hi,
Decided to give this class a try and after using parse on an "a" tag that has a "href" attribute with http link it gives me an error:
Notice: Undefined variable: string2 in /*****/php5.class.kses.php on line 958
I'm I right to assume that that $string2 should be $string?
Just found your repo on here, and wanted to say thank you for creating the kses project, and taking it back up again. Your project has been a life saver for many people, and sites over the years.
I'm currently using a modified (I minified, and included html5 cleaning) in my own project, LibreCMS.
Warning: preg_replace_callback(): Requires argument 2, 'kses_normalize_entities2("\1")', to be a valid callback in F:\xampp\htdocs\XSS\kses-master\kses.php on line 522
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\xampp\htdocs\XSS\kses-master\kses.php on line 81
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.