Comments (5)
controllers/Thread.php
line 220 find: "post" => str_replace("'", "'", $_POST['post']),
replace with
"post" => str_replace("'", "'", htmlspecialchars($_POST['post'])),
line 354 find:
"poll_allow_multiple" => (isset($_POST['poll_allow_multiple'])) ? 1 : 0
);
replace with
"poll_allow_multiple" => (isset(htmlspecialchars($_POST['poll_allow_multiple']))) ? 1 : 0
);
line 364 find:
"post" => str_replace("'", "'", $_POST['post']),
replace with:
"post" => str_replace("'", "'", htmlspecialshars($_POST['post'])),
line 419 find:
"post" => $_REQUEST['post'],
replace with:
"post" => htmlspecialchars($_REQUEST['post']),
from addictive-community.
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /home/arcestia/public_html/controllers/Thread.php on line 354
@inrussiawithhate
from addictive-community.
My error. It back as it was again tested whether there are XSS?
find:
"poll_allow_multiple" => (isset(htmlspecialchars($_POST['poll_allow_multiple']))) ? 1 : 0
);
replace with:
"poll_allow_multiple" => (isset($_POST['poll_allow_multiple'])) ? 1 : 0
);
from addictive-community.
@brunnopleffken need to update in next version
from addictive-community.
Thanks for reporting! There’s no need to re-encode the information using PHP, as the built-in WYSIWYG editor already does that (in DB, you'll already see encoded information). So, we just need to sanitize the view, not the back-end.
The achieved result:
from addictive-community.
Related Issues (20)
- Update Software version to v0.11.0 HOT 1
- Addictive Community's UI/SCSS is confuse and too complex HOT 3
- Add Kernel modules and controllers to namespaces + autoloader
- Fallback language
- Migrate from MyISAM since MySQL 5.6 supports FULLTEXT for InnoDB
- apache_get_modules() HOT 3
- Subforums? HOT 1
- Better transliteration support for non-Latin characters HOT 1
- Add profile cover image
- Nginx Support
- bug with Cyrillic HOT 4
- Other reported errors
- can i use for our personal agenda? HOT 1
- problem during creating new thread HOT 5
- ToDo List HOT 5
- Error HOT 1
- Facing the translation problem HOT 9
- Translate Addictive Community using our new i18n tool! HOT 18
- Standardize date/time fields in the database HOT 2
- MySQLi is supported. Any plans on other databases? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addictive-community.