Joo!BB - Making Community
Joo!BB - Joomla! Bulletin Board
Board Index
>
General Joo!BB Discussion
[patch][rev 65] allow html code in Signature
Welcome, Guest

Message
You have no permission to post a topic.
4 Replies

by Ramses on 03/22/2010 05:07
Post [patch][rev 65] allow html code in Signature

Hi,

another very small patch.

It allows html code to be stored in signatures.

diff file

is this perhaps a security risc? is there a reason to not allow html code?


Regards


Ramses | Joined Board: 03/21/2010 01:30 | Last Visit: 09/20/2010 18:21
Joo!BB - Newie
Registered
Posts: 20
Offline Member is Offline
View all users posts

Last Edit on 03/22/2010 05:17


by Robbie on 03/22/2010 19:10
Post Re: [patch][rev 65] allow html code in Signature

Ramses,

yes, it's for security reasons. The finest solution is to let users edit their signature in the default Joomla WYSIWYG Editor. But the problem is, that not every user is allowed to use the editor in frontend. Sad Smile Please let me have a look at the code, maybe we can find a quick solution...

Robbie


Robbie | Joined Board: 12/14/2007 10:38 | Last Visit: 11/20/2011 10:49
Joo!BB - Master
Administrator
Posts: 775
Offline Member is Offline
View all users posts


by Ramses on 03/22/2010 22:20
Post Re: [patch][rev 65] allow html code in Signature

Yes using a "real" editor was one thing I thought about.

I also thought about alowing BBCode in signatures, this would fit most users need. But 'til now I did not found the function interpreting BB Tongue Out will look for it this night.

/*edit*/
(1)
I did a bit of research and I'm not really sure why using JRequest may be security risk. The JRequest class which uses JFilterInput looks quite safe to me. But I leak of knowledge in web programming to say this for sure.

(2)
I personaly would love to have BB code signatures, this is used in most other forums too. (afaik)
so a possible solution would be to add a call to
$joobbEngine->ConvertBBToHtml($post->signature)
to com_joobb/system/joobbpost.php

or to include the signature into function convertToHtml(&$post) in file com_joobb/system/joobbengine.php with

Code

 
//replace signature
if ($joobbConfig->getBoardSettings('enable_bbcode') && $post->enable_bbcode) {
$post->signature = $this->convertBBToHtml($post->signature);
}
 
$post->signature = str_replace("\n", "", $post->signature);


what do you think? (normally there should be an extra option to disallow bbcode in signatures, but for a quick solution this is ok, imo)

( mhm code tag eats my html-new-line Tongue Out )
so here the old fashioned patchfile [rev 67]: link

using the joobb-editor to edit the signature would be a possible solution for all board users then.


regards


Ramses | Joined Board: 03/21/2010 01:30 | Last Visit: 09/20/2010 18:21
Joo!BB - Newie
Registered
Posts: 20
Offline Member is Offline
View all users posts

Last Edit on 03/23/2010 01:07


by Robbie on 03/23/2010 21:01
Post Re: [patch][rev 65] allow html code in Signature

Ramses,

sorry, no more time today to realize it. Sad Smile it's time to Sleepy Smile

to allow BB codes to format signature is a good idea. Smile

Robbie


Robbie | Joined Board: 12/14/2007 10:38 | Last Visit: 11/20/2011 10:49
Joo!BB - Master
Administrator
Posts: 775
Offline Member is Offline
View all users posts

Last Edit on 03/23/2010 21:01


by Ramses on 03/28/2010 09:21
Post Re: [patch][rev 65] allow html code in Signature

thanks for implementation.
(see pm for comments)

Regards


Ramses | Joined Board: 03/21/2010 01:30 | Last Visit: 09/20/2010 18:21
Joo!BB - Newie
Registered
Posts: 20
Offline Member is Offline
View all users posts

Last Edit on 03/31/2010 00:43


4 Replies

Joo!BB - Joomla! Bulletin Board

Copyright © 2007 - 2012 Joo!BB Project - All rights reserved.