Sub Menu
Links Menu
Online Users

In total there are 340 users online :: 2 registered, 0 hidden and 338 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

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

Support for IntegraMOD 141

Moderator: Integra Moderator

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

PostAuthor: Omni-Lee » Thu Feb 01, 2007 12:56 am

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.
Last edited by Omni-Lee on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Out, out, brief candle! Life's but a walking shadow, a poor player that struts and frets his hour upon the stage and then is heard no more: it is a tale told by an idiot, full of sound and fury, signifying nothing" - Macbeth ACT V, Scene V by William Shakespeare
User avatar
Omni-Lee
Members
Members
 
Posts: 69
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 31, 2007 11:07 pm
Cash on hand: 0.00

Re: Welcome to IntegraMod block bug?

PostAuthor: Teelk » Thu Feb 01, 2007 1:09 am

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.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [BUG]Welcome to IntegraMod block bug?

PostAuthor: Teelk » Thu Feb 01, 2007 1:19 am

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);                 }
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

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

PostAuthor: MWE_001 » Thu Feb 01, 2007 1:53 am

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.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: Omni-Lee » Thu Feb 01, 2007 3:47 am

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.
Last edited by Omni-Lee on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Out, out, brief candle! Life's but a walking shadow, a poor player that struts and frets his hour upon the stage and then is heard no more: it is a tale told by an idiot, full of sound and fury, signifying nothing" - Macbeth ACT V, Scene V by William Shakespeare
User avatar
Omni-Lee
Members
Members
 
Posts: 69
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 31, 2007 11:07 pm
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot]

cron