Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: \r\n BUG  (Read 2268 times)

allcity

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
\r\n BUG
« on: February 23, 2009, 09:55:11 am »


Logged

Joost

  • Guest
Re: \r\n BUG
« Reply #1 on: February 23, 2009, 11:31:25 am »

A patch:

Replace in function process ( in snews.php)

Code: (old code) [Select]
<?php
case 'admin_article':
$_SESSION[_SITE.'temp']['title'] = $title;
$_SESSION[_SITE.'temp']['seftitle'] = $seftitle;
$_SESSION[_SITE.'temp']['text'] = $text;
?>



with

Code: (NEW code) [Select]
<?php
case 'admin_article':
$_SESSION[_SITE.'temp']['title'] = $_POST['title'];
$_SESSION[_SITE.'temp']['seftitle'] = $_POST['seftitle'];
$_SESSION[_SITE.'temp']['text'] = $_POST['text'];
?>


Note: If magic_quotes_gpc is turned on, add the following to .htaccess:


Code: [Select]
php_flag magic_quotes_gpc OFF


Logged