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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 369
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 297
  • Total: 297

WARNING

Started by deniz, April 18, 2006, 09:25:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mitchâ„¢

Well I think there should be some sort of patch that should be installed. I know people who dont know alot of coding will just turn a blind eye on the subject.

Crip

Quote from: JayBachatero on April 18, 2006, 11:56:17 PM
Ok I provided a quick fix here.

It was not a problem on their site.  My site was hacked too.

So Jay,
we should really edit all the file in TPortal in your quick fix..is this something that Needs to be done without Bloc's own approval??
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



JayBachatero

If you look at the changes it's small changes.  I'll PM you with more details.

elpvn

Quote from: JayBachatero in SMF site
Ok here is a quick fix.  This add slashes to apostrophes and removes any html tags from $_POST var.

In TPmodules.php
Code (find) Select

$shout=strip_tags(substr($_POST['tp-shout'],0,300),'<b><u><i>');


Code (replace) Select

$_POST = addslashes__recursive($_POST);
$shout = substr($_POST['tp-shout'],0,300);
$shout = strip_tags($shout);
$_POST['tp-shout-name'] = strip_tags($_POST['tp-shout-name']);


In TPortal.php
Code (find) Select

  $shouts='Last '.$limit.' shouts:<hr />';

  while($row = mysql_fetch_assoc($request)){


Code (replace) Select

  $shouts='Last '.$limit.' shouts:<hr />';

  while($row = mysql_fetch_assoc($request)){
$row = stripslashes__recursive($row);


In TPortalAdmin.php
Code (find) Select

               if(mysql_num_rows($request)>0){
                  while ($row = mysql_fetch_assoc($request))
                  {


Code (replace) Select

               if(mysql_num_rows($request)>0){
                  while ($row = mysql_fetch_assoc($request))
                  {
$row = stripslashes__recursive($row);


Thanks, I tried  ;)

JayBachatero

That is for the shoutbox only.  It might be good to check any other place too just to be on the safe side.

bloc

I will send out notice of an update to 0.86 asap.

In the meantime, just try out Jay's code. I need to check it out and setup a update package.

elpvn


JayBachatero

Bloc I'll post a packaged version of this fix in a few mins.  elpvn are you using IE or FF?

elpvn

Quote from: JayBachatero on April 19, 2006, 01:27:29 AM
Bloc I'll post a packaged version of this fix in a few mins.Ã,  elpvn are you using IE or FF?

Thank for up to update the fixed.
I using IE6 browserÃ,  :)

JayBachatero

#19
@elpvn - Umm I still haven't applied the fix for the Google Map to work on IE6.  TLM provided a fix but forgot all about it :-\.

Here is a packaged fix.  I tried it on my site and it worked.  If anything just let me know.

This website is proudly hosted on Crocweb Cloud Website Hosting.