PDA

View Full Version : PHP Nuke


PJ Matthews
17-07-2003, 23:28
Okay, its baffling me. Its really really really confusing me.

Our reviews module of our PHP installation over on web site (www.walibe.com) is stripping each review entered of most HTML. Images do not appear and some formating goes out of the window. HTML cannot be enabled from with in the admin interface so it was out with the old text editor and the index.php file from the module:

Inside Index PHP
In the send_review section - this:

$text = stripslashes(Fixquotes(urldecode(check_html($text, ""))));
was changed to this:

$text = stripslashes(Fixquotes(urldecode($text)));

Great but the same result occurs. Okay so with help from a support forum I realise the preview_review is also causing problems so this:

$text = stripslashes(check_html($title, ""));

is changed to this:

$text = stripslashes($title, "");

This result is the inability to post:
"Warning: Wrong parameter count for stripslashes() in /usr/local/psa/home/vhosts/walibe.com/httpdocs/modules/Reviews/index.php on line 162"

Can anyone see where Im going wrong here? Im ripping my hair out about it and Im sure the two Chris's are fed up of me going on and on about it :-).

PJ

andymcm
17-07-2003, 23:46
Looks like it should be:

$text = stripslashes($title);

PJ Matthews
18-07-2003, 10:59
Main problem was that $title needed to be replaced with $text and the quotes removed :).

Works now:
YAY