XOOPS

XOOPS 2.5.12 Beta-2 available for Testing

Mamba  13-Aug-2024 06:50 592 Reads   2 Comment(s) 
The XOOPS Development Team is pleased to announce the release of XOOPS 2.5.12-Beta2.

NEW in this release: Support for Smarty 4.x

Please help make XOOPS better by testing and reporting any issues!

This is a BETA intended for testing only. Do NOT use it in a production site.


DOWNLOAD:

If you are downloading this release for testing, please download from the current master instead.

Any bugs that have been found and fixed will be included in your testing that way, so we all won't keep finding and reporting the same bug over and over.

You can grab the current master here: https://github.com/XOOPS/XoopsCore25/archive/master.zip

Full Changelog: v2.5.11...v2.5.12-Beta2
Rating 5.00/5
Rating: 5.0/5 (1 vote)
Voting is disabled!
user

 Re: XOOPS 2.5.12 Beta-2 available for Testing


I need POST HTML value

<p>a <a href="https://www.cadch.com" title=’Home’ target="_blank">test</a> link</p>

Because can't use $myts->addSlashes($html);
Im use XoopsRequest
My source
$html XoopsRequest::getString('html''''POST'4);

But Single quotes will break the html structure.
R there any other ways?

 
user

 Re: XOOPS 2.5.12 Beta-2 available for Testing


1) start using in all your modules Xmf\Request instead of the XoopsRequest 2) Instead of using addSlashes(), you could then do this:

use XmfRequest;
// Retrieve the HTML content
$html Request::getString('html''''POST');

// Sanitize the HTML input
$sanitizedHtml trim((string) XoopsFilterInput::clean($html'STRING'));

// Optionally escape before storing in the database
$escapedHtml $xoopsDB->escape($sanitizedHtml);
Let me know if it works for you

 


Login

Who's Online

390 user(s) are online (5 user(s) are browsing Publisher)


Members: 0


Guests: 390


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories