If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / HTMLArea - bug in generated links?

HTMLArea - bug in generated links?

Started by thannaree on 10 Feb 2011, 7:14 AM · Views: 889

Results 1 to 3 of 3
10 Feb 2011, 7:14 AM
#1
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

HTMLArea - bug in generated links?

Hello there,

I'm not sure whether this should be posted here or under report security problem.

I'm using the latest ZC version and I've created EZ pages that include html bookmark tags. Note that these bookmarks only link parts of text within the same page, not from one page to another.

This is an example:
<a title="What is your privacy policy?" href="http://www.mysite.com/index.php?main_page=page&id=66666#~_What_is_your_privacy_policy">~ What is your privacy policy?</a>

There is not any issue whatsoever when I enter the text, or modify it in the admin in “Plain text.” However, when I enter, or modify, it in "htmlArea," and hit update, the system adds my admin folder to the bookmark link. Using the example above, it would become:

<a title="What is your privacy policy?" href="http://www.mysite.com/**MYADMIN/**index.php?main_page=page&id=66666#_What_is_your_privacy_policy"> What is your privacy policy?</a>

So when I click any of the bookmarks on the site, that brings the admin login page up. I had a few heartattacks with this issue recently but have fixed this by just entereing it all in "Plaintext," and thought to report it.

10 Feb 2011, 7:41 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: HTMLArea - bug in generated links?

Yes, HTMLAREA will do that for links and for images.
HTMLarea has many limitations including those you mention.
That's why it's being removed in the next version. CKEditor is the preferred editor of choice. You can install the addon for it from the Free Addons area.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Feb 2011, 1:46 AM
#3
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: HTMLArea - bug in generated links?

Thanks DrByte for your reply and recommendation. I'll try CKEditor out!