1
marckd
should be an easy hack
  • 2006/3/29 16:14

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


hello!
well... hacking the sanitizer...
i want to hack the censorString function...
so... that everytime it finds a word in the list of censored... then it creates a link...
for example... someone typed
google

so the replacement should be something like
".$word.".com'>".$word.""


so... how should i modify this function located in class/module.textsanitizer.php ????

thanks in advance!

2
m0nty
Re: should be an easy hack
  • 2006/3/29 16:20

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


posting in the right forum may improve chances of finding out..

module hack *reviews* isn't exactly a request forum, neither is the text sanitizer a module. it's a core function.

can't you copy/paste 1 of the existing and just change the variables.

3
marckd
Re: should be an easy hack
  • 2006/3/29 16:30

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


i have tryed with the following lines inside the censorString function... (lines 377 378)

$patterns[] = "/(s)".$bad."/siU";
                    
$replacements[] = ".$bad.".com/'>".$bad."";


but doesnt seem to work

4
marckd
Re: should be an easy hack
  • 2006/3/29 19:11

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


0k! i discovered why it isnt working!!
on myalbum submition, there is no censor word analyzer applyed... anyone knows how to include it??? thanks! :)

Login

Who's Online

399 user(s) are online (298 user(s) are browsing Support Forums)


Members: 0


Guests: 399


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits