MTM2.com

A forum for mtm2 discussion
FAQ :: Search :: Members :: Groups :: Register
Login
It is currently Mon Nov 25, 2024 2:55 am



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Question for Phineus -URGENT-
PostPosted: Wed Mar 24, 2004 8:15 pm 
I would have registered to pm you, but it seems that there is a problem with your code (or it could be my incompetence).

Here's my question:

You posted on phpbb.com http://www.phpbb.com/phpBB/viewtopic.ph ... characters
with a question that never got resolved. Have you since figured it out? I have the EXACT same problem, and I really want to know why the conversion from < to &lt; happens some of the time and not other times.

Thanks :)


Top
  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 8:48 pm 
Glow Ball
User avatar

Joined: Tue Feb 02, 1999 7:00 pm
Posts: 23
Posting here is okay. However, I have not tracked down this problem. Unfortunately, I have not yet found, or even looked for, the functions that control html. As of this moment, my working theory is that nested tags such as 'javascript' or 'style' are not recognized and so the effort to convert to html is rejected. If or when I ever do get to this, I will post a follow up in that thread. Sorry I don't have more.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 8:56 pm 
:(

Well thanks at least for your working theory. I'm going to hunt down whatever I can find (looking through posting.php first). I'll get back to you if I figure out anything conclusively :)


Top
  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 9:58 pm 
I didn't even think it would be in the code [:P]

It turns out that posting.php calls to a function called message_prepare() which happens to be located in functions_post.php in the includes folder. After some snooping in there I found the function that bands all the style parameters and onclick, onmousemove, onload stuff:
Code:
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[ ]*?=|on[\w]+[ ]*?=)#i', $hold_string)) ? false : true;


I guess that is pretty smart of them, eh? You can delete this post or move it if you want to. I'm done :)

Thanks or heading me down the right path!


Top
  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 10:18 pm 
Glow Ball
User avatar

Joined: Tue Feb 02, 1999 7:00 pm
Posts: 23
Glad to help. Now I'll have to begin looking into this all over again ;-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 91 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group