TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 702
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

Error when edit a shout in TPShout controlpanel

Started by Kimmen, May 24, 2011, 03:16:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kimmen

Link to my site: http://www.efclan.eu
SMF version: RC4 sec.patch
TP version: TP ver. 1.102
Default Forum Language: English
Theme name and version: Catamosphere by Shine-Art & Smf Personal
Browser Name and Version: Newest
Mods installed: Mods listed here
Related Error messages:
DATABASE ERROR:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''gameservers.com killed our server again !!! YAAY. :-\' WHERE id=433' at line 1
File: /customers/efclan.eu/efclan.eu/httpd.www/tp-files/tp-modules/TPShout/Sources/TPShout.php
Line: 313



Happens when edit a shout in the controlpanel.

IchBin

At line 313 look for this code:
tp_query("UPDATE " . $tp_prefix . "shoutbox SET value1='". htmlspecialchars($value,ENT_QUOTES). "' WHERE id=" .$val, __FILE__, __LINE__);

Replace with this:
tp_query("UPDATE " . $tp_prefix . "shoutbox SET value1='". mysql_real_escape_string(htmlspecialchars($value,ENT_QUOTES)). "' WHERE id=" .$val, __FILE__, __LINE__);


Kimmen


This website is proudly hosted on Crocweb Cloud Website Hosting.