Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 80
5 members and 75 guests
chrws7zonicfati, devbpy6eloppsy5, garere3denstc3t, int5nwernetmarx, locdpalmobiwjp6
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
href link stripped from witin <a..</a> tag after pa
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2006
href link stripped from witin <a..</a> tag after pa - 04-04-2006, 09:01 PM

i just installed fresh site based on phpnuke 7.8. the first thing i did is to apply security patch 3.2 (78patched3dot2.zip). well, as far as i can see all works ok except i can not get html links to work properly in the story module

when i submit a test news to myslf, a simple

test.com
i can see the link on the preview page before actual submition. the link properly reflects http://test.com

next when i get to the new submition in my admin pannel the link is gone, the messeg come just plain text test.com

if i try to add link witin admin pannel
and i preview that new story i can see properly formated link
http://mysite.com/index.php?url=http://test.com

but after the news is submited link goes to:
test.com

i suuspect that the security patch does not allow create link here, but from all posting i found this should be allow by the entry in config.php
$AllowableHTML = array("a"=>2, ....

so i am lost.
can anyone point me in the right direction ?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
04-04-2006, 09:50 PM

I'm not sure you want to hear this but personally I'd say run as fast as you can from 7.8 (regardless of patch level) and go to ravennuke .76 patched series.

You can find the latest raven release here: http://ravenphpscripts.com/




My Daughter Rules!
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2006
04-05-2006, 11:43 AM

Duke, i took your advice, as off this moment running ravennuke7.6. still looking around but as far as i can say all looks good.

thanks,
-voitek.,

-
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 242
Join Date: May 2005
04-05-2006, 07:15 PM

This is the code that is stripping the <a href and <img src tags
in mainfile.php


Code:
	// Delete all spaces from html tags .
	$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
	// Delete all attribs from Anchor, except an href, double quoted.
	$str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", '', $str);
	// Delete all img tags
	$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
Read more here:
http://www.nukecops.com/PHP-Nuke_all...html-tags.html
and here
http://www.nukecops.com/PHP-Nuke_config-php-file.html

I have yet to find a SECURE workaround that allows the full use of a href and img tags
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
04-05-2006, 11:33 PM

I'm glad it's working out for you buds, terrific!




My Daughter Rules!
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 242
Join Date: May 2005
04-06-2006, 07:06 AM

Quote:
Originally Posted by Duke
I'm glad it's working out for you buds, terrific!
NOT working for me..see at the end of my previous post??

Quote:
I have yet to find a SECURE workaround that allows the full use of a href and img tags
You can comment out those lines I specified in mainfile.php but that is a security risk. Even with those lines commented out, IT still does not fully work and will still strip img tags if they have any added code like
Code:
<img src-"images/one.gif" border="0">
border="0" causes the <img tag to be stripped.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
04-06-2006, 02:31 PM

Quote:
Originally Posted by myrtletrees
Quote:
Originally Posted by Duke
I'm glad it's working out for you buds, terrific!
NOT working for me..see at the end of my previous post??
I'm not sure what this means :?




My Daughter Rules!
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 242
Join Date: May 2005
04-06-2006, 06:30 PM

You said you were glad it's working out for us buds...

I said, it is not working out.

This is STILL a problem...do you understand?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
04-06-2006, 07:37 PM

Now I see why I missed your meaning because I wasn't replying to you at any time in the post, understand?




My Daughter Rules!
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 242
Join Date: May 2005
04-06-2006, 10:39 PM

Quote:
Originally Posted by Duke
I'm glad it's working out for you buds, terrific!
ahh?? considering you said "buds"(which is plural, meaning more than one) even tho I'm not a "bud", I'm a "budette", the topic starter of this post, and me are the only ones that replied here...it looked like you were replying to me and him as "buds" in your post.

8O ...totally on the wrong page here... :P

REGARDLESS,

The problem STILL pesists in Nuke 7.6, 3.2 patched.

<a href and <img tags are improperly stripped by Nuke and or Sentinel.

There needs to be better control over these features.

Just as and FYI.>>
I have resorted to taking my "html" that is "bad" to Nuke and Sentinel and converting it into blocks.
   
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
Web Link icon! web_design Nuke 7.x - Modules 4 02-22-2006 10:32 PM
New Link ultimitetinafan Site design 2 02-06-2006 11:48 PM
fiBlack 3d Avatar Link (Forum image) link - Problem exxxpress Theme packs 6 05-20-2003 11:09 AM
help with a link samson Purged Topics 3 12-03-2002 08:06 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31