Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [FIX], Single Quote issue php 4 and 5  (Read 1263 times)

alks

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 53
[FIX], Single Quote issue php 4 and 5
« on: February 09, 2011, 07:14:44 PM »

The Single User Verison of Snews 1.6 already has this fix applied, however it is missing from the current MU download 1.6.3.

This fixes an issue with single quotes / apostrophes on certain set ups which can cause data to not be saved to the database.

in function processing()
locate

Code: [Select]
$text = $_POST['text'];
and make it like

Code: [Select]
$text = clean($_POST['text']);
For original reference see this post:
http://snewscms.com/forum/index.php?topic=4629.0
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: [FIX], Single Quote issue php 4 and 5
« Reply #1 on: February 09, 2011, 07:40:12 PM »

Thanks for posting the patch Alks.
The official download is now updated with the patch added on the Downloads page.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU