Page 1 of 1

[BUG & FIX]Period before word script; blocks.

PostPosted: Thu Feb 01, 2007 12:56 am
Author: Omni-Lee
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?
Fresh Installation of 141


What was done to try to solve the problem?
unable to solve



De.scription and Message

This is a very odd issue.

I edited the Welcome to IntegraMod block by removing the logo and placing some text.

Text as follows:
Please see our General Forums for the Kinship de.scription and guidelines before joining.

This is what appears and replaces the text in the block:
Please see our General Forums for the Kinship de..scription and guidelines before joining.

Notice the . in the word de.scription.

I've retyped the sentence numerous times.

Any help would be appreciated.


On a side note, when with CrackTracker be patched? I too am having the issue with false positives during forum creation.

Re: Welcome to IntegraMod block bug?

PostPosted: Thu Feb 01, 2007 1:09 am
Author: Teelk
CrackerTracker patch is coming soon, I'd just like to catch as many of the false positives as possible with one patch.

The . in the de.scription was a security measure to ensure java.script couldn't be run from posting. The . is placed in the message before the word .script and is stripped out when viewed. Seems we forgot to strip it out of the portal. I'll get on it right now.

Marking this as a bug.

Re: [BUG]Welcome to IntegraMod block bug?

PostPosted: Thu Feb 01, 2007 1:19 am
Author: Teelk
Here's the fix...

OPEN includes/functions_portal.php
FIND
Code: Select all
                    $text = str_replace("n", "n<br>n", $text);

AFTER ADD
Code: Select all
                    if (strpos($text, '..script') !== false) {                         $text = str_replace ('..script', ".script", $text);                     }


OPEN admin/admin_blocks.php
FIND
Code: Select all
                $message = str_replace('<lt>', '&gt;', $message);                 $message = str_replace('<br>', "n", $message);

AFTER ADD
Code: Select all
                if (strpos($message, '..script') !== false) {                     $message = str_replace ('..script', ".script", $message);                 }

Re: [BUG & FIX]Welcome to IntegraMod block bug?

PostPosted: Thu Feb 01, 2007 1:53 am
Author: MWE_001
I was JUST coming here to post about this very same topic. as minute as it is I bumped into it as well when i typed in the word "de.scription" in a sentance. Good catch Omni-Lee and thx for the fix Teelk. On top of things as usual.

Re: [BUG & FIX]Welcome to IntegraMod block bug?

PostPosted: Thu Feb 01, 2007 3:47 am
Author: Omni-Lee
I made the changes to the files and I got hit with this:

Warning: Cannot modify header information - headers already sent by (output started at ./includes/functions_portal.php:655) in ./includes/page_header.php on line 1156

Warning: Cannot modify header information - headers already sent by (output started at ./includes/functions_portal.php:655) in ./includes/page_header.php on line 1158

Warning: Cannot modify header information - headers already sent by (output started at ./includes/functions_portal.php:655) in ./includes/page_header.php on line 1159

*EDIT*
Nevermind, I made a mistake with the copy and paste somehow. It's fixed and working properly.

Thank you for the rapid fix.