Members: 16,996
Threads: 38,831
Posts: 159,347
Online: 56

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 11.09.2005, 19:05   #1 (permalink)
Baby Mamber
 
Join Date: Sep 2005
Posts: 2
mmccurdy is on a distinguished road
Default Something's stripping html tags from my POST data...

I'm actually running 4.5.2 (not sure if it makes a difference here).

My problem is this: I have a form submitting POST data. Occasionally I would like that post data to contain (limited) HTML tags like bold, img, etc. However, when I reference that data in the resulting page, the HTML is always systematically stripped out.

I have tried passing _MOS_ALLOWHTML to an mosGetParam call like this:

Code:
echo("mosgetting message: ".mosGetParam($_POST, 'message', '', _MOS_ALLOWHTML));
I have even tried bypassing the built-in mambo utility functions entirely by putting this at the very top of my results page:

Code:
echo("raw post data: ".$_POST['message']);
The output is the same -- HTML tags carefully stripped away.

So, it would appear that something upstream of this page is intercepting those tags.

I guess my question is this: What else could it be? Are there general functions/filters that Mambo runs before loading the content of the results page?

A little bit more context: This is part of a custom adaptation of phpBB, and the 'message' field in question is the body of a post. I started with the widely-used phpBB component, but I've hacked in thread support and a couple of other custom requirements. The results page in question is "posting.php" which lives in the mambo/components/com_forum directory.

Any thoughts would be greatly appreciated -- this is one of a handful of bugs left to fix before we're live
mmccurdy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12.09.2005, 08:39   #2 (permalink)
Baby Mamber
 
Join Date: Sep 2005
Posts: 2
mmccurdy is on a distinguished road
Default Re: Something's stripping html tags from my POST data...

Okay so I figured it out... apparently Mambo was sharing a POST variable with phpBB called 'message', and Mambo had taken it upon itself to strip the HTML through a more conservative mosGet... call.

Changing the name of the field in the phpBB component to 'phpbb_message' instead of 'message' fixed the problem.
mmccurdy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stripping {mosimage} tags off RSS feeds Mithra Mambo 4.5.1 'How Do I' Questions 3 14.04.2005 06:43
mosgetparam strips html tags vcetinick Mambo 4.5.1 'How Do I' Questions 1 17.02.2005 00:22
Linking to a page generated by post data nostro Mambo 4.5.1 'How Do I' Questions 0 13.10.2004 20:00
HTML tags in page title DocBrown Mambo 4.5.1 'How Do I' Questions 0 28.09.2004 16:28
HTML tags in the newsflash/feed khklo Mambo 4.5 Bugs 0 29.05.2004 21:45


All times are GMT +2. The time now is 03:47.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.