PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sozzledboot
New Member
New Member


Joined: Jun 21, 2008
Posts: 17

PostPosted: Wed Jun 25, 2008 3:18 pm Reply with quote Back to top

I am going to instal RavenNUke now on top of a clean site and fresh database.

I added what I prefer as allowable HTML in the appropriate config.php line, but what about any check_html or filter_text issues?

Is that an issue with RavenNuke and if so, how do I change things to allow my allowable HTML?

Thanks in advance.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4816

PostPosted: Thu Jun 26, 2008 4:34 am Reply with quote Back to top

The check_html () function is located in mainfile.php
In RavenNuke the filtering that is done by that function is not applied to Admin input so unless you want to open up the filter to everyone there is no need to touch. If you were thinking of opening that up (bad idea) think carefully!! You might be able to give more flexibility by modifying the WYSIWYG Editor (details in the editor forum here) whilst still maintaining a level of filtering for security.

The filter_text() function is located in mainfile but I see no need to modify it's behaviour and doing so would be ill advised.
View user's profile Send private message Send e-mail Visit poster's website
sozzledboot
New Member
New Member


Joined: Jun 21, 2008
Posts: 17

PostPosted: Thu Jun 26, 2008 9:59 am Reply with quote Back to top

Got it!

I simply modified the $AllowableHTML in config and am leaving check_html() as well as filter_text alone().

Can I make the WYSIWYG $AllowableHTML identical to that in config?

Thanks in advance.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4816

PostPosted: Thu Jun 26, 2008 11:03 am Reply with quote Back to top

You shouldn't need to touch it.
What exactly are you trying to 'allow'?
View user's profile Send private message Send e-mail Visit poster's website
sozzledboot
New Member
New Member


Joined: Jun 21, 2008
Posts: 17

PostPosted: Thu Jun 26, 2008 1:23 pm Reply with quote Back to top

As an admin, I want to edit only in HTML, no WYSIWYG.

I'm old fashioned that way.

but here is the $AllowableHTML I put in both config.php as well as rnconfig:

$AllowableHTML = array('a' => array('href' => 1,'target' => 1,'title' => array('minlen' => 4,'maxlen' => 120)),'b' => array(),'blockquote' => array(),'br' => array(),'center' => array(),'div' => array('align' => 1),'em' => array(),'embed' => array('src' => 1,'width' => 1,'height' => 1,'wmode' => 1,'type' => 1),'font' => array('face' => 1,'style' => 1,'color' => 1,'size' => array('minval' => 1,'maxval' => 7)),'h1' => array(),'h2' => array(),'h3' => array(),'h4' => array(),'h5' => array(),'h6' => array(),'hr' => array(),'i' => array(),'img' => array('alt' => 1,'src' => 1,'hspace' => 1,'vspace' => 1,'width' => 1,'height' => 1,'border' => 1,'align' => 1),'li' => array(),'object' => array('width' => 1,'height' => 1),'ol' => array(),'p' => array('align' => 1),'param' => array('name' => 1,'value' => 1),'pre' => array('align' => 1),'span' =>array('class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),'strong' => array(),'strike' => array(),'sub' => array(),'sup' => array(),'table' => array('align' => 1,'border' => 1,'cell' => 1,'width' => 1,'cellspacing' => 1,'cellpadding' => 1),'td' => array('align' => 1,'width' => 1,'valign' => 1,'height' => 1,'rowspan' => 1,'colspan' => 1,'bgcolor' => 1),'tr' => array('align' => 1),'tt'=> array(),'u' => array(),'ul' => array(),);
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4816

PostPosted: Thu Jun 26, 2008 1:49 pm Reply with quote Back to top

See my first post In RavenNuke the filtering that is done by that function is not applied to Admin input
By changing the allowed html array you have left it open to abuse by anyone who has posting privileges (any registered user) - are you sure you want to do that?

Just for your information, the WYSIWYG editor has a button in the toolbar called 'source' which will let you enter pure html 'the old fashioned way' but it will also check and ensure it is XHTML compliant when saved.
View user's profile Send private message Send e-mail Visit poster's website
sozzledboot
New Member
New Member


Joined: Jun 21, 2008
Posts: 17

PostPosted: Thu Jun 26, 2008 2:33 pm Reply with quote Back to top

I'll use the source option then and restore the allowable HTML to its original.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4816

PostPosted: Thu Jun 26, 2008 2:51 pm Reply with quote Back to top

In all honesty that, that would be a safer approach Wink
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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 vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum