» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 59
0 members and 59 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on href link stripped from witin <a..</a> tag after pa within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; i just installed fresh site based on phpnuke 7.8. the first thing i did is to apply security patch ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2006, 10:01 PM
Junior Member
 
Join Date: Apr 2006
Posts: 2
href link stripped from witin <a..</a> tag after pa
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
  #2 (permalink)  
Old 04-04-2006, 10:50 PM
Duke's Avatar
Super Moderator
 
Join Date: Dec 2005
Location: Under your bed
Posts: 1,002
Send a message via AIM to Duke
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-05-2006, 12:43 PM
Junior Member
 
Join Date: Apr 2006
Posts: 2
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
  #4 (permalink)  
Old 04-05-2006, 08:15 PM
Junior Member
 
Join Date: May 2005
Posts: 242
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
  #5 (permalink)  
Old 04-06-2006, 12:33 AM
Duke's Avatar
Super Moderator
 
Join Date: Dec 2005
Location: Under your bed
Posts: 1,002
Send a message via AIM to Duke
I'm glad it's working out for you buds, terrific!
__________________


My Daughter Rules!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-06-2006, 08:06 AM
Junior Member
 
Join Date: May 2005
Posts: 242
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
  #7 (permalink)  
Old 04-06-2006, 03:31 PM
Duke's Avatar
Super Moderator
 
Join Date: Dec 2005
Location: Under your bed
Posts: 1,002
Send a message via AIM to Duke
Originally Posted by myrtletrees
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-06-2006, 07:30 PM
Junior Member
 
Join Date: May 2005
Posts: 242
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
  #9 (permalink)  
Old 04-06-2006, 08:37 PM
Duke's Avatar
Super Moderator
 
Join Date: Dec 2005
Location: Under your bed
Posts: 1,002
Send a message via AIM to Duke
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-06-2006, 11:39 PM
Junior Member
 
Join Date: May 2005
Posts: 242
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 11:32 PM
New Link ultimitetinafan Site design 2 02-07-2006 12:48 AM
fiBlack 3d Avatar Link (Forum image) link - Problem exxxpress Theme packs 6 05-20-2003 12:09 PM
help with a link samson Purged Topics 3 12-03-2002 09:06 PM


All times are GMT -5. The time now is 11:46 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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