An issue with a contact form

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
inteltone
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Jan 15, 2011 10:36 am

An issue with a contact form

Post by inteltone » Sat Jan 15, 2011 10:59 am

I use contact forms on several pages of my website. They have worked very well on my Joomla1.5.22 website.

I installed Joomla1.6. Now there is a problem. When I copy a script of a contact form to a page and then save a page as a result the form is missing one, very important line, namely

action="http://mywebsite.com/cgi-bin/fmail.cgi"

So Joomla1.6 throws this line away while saving this article and nothing could help me solve this problem so far.

Please, help me. I would really appreciate it.
Thanks in advance.

CDNKnights
Joomla! Guru
Joomla! Guru
Posts: 541
Joined: Fri Oct 15, 2010 7:19 pm
Location: Canada

Re: An issue with a contact form

Post by CDNKnights » Mon Jan 17, 2011 2:31 pm

Your code is being stripped because of the Joomla blacklist. This is done to prevent people from being able to execute unwanted scripts from within your site. You CAN go into libraries/joomla/filter/filterinput.php and look on line 65. "var $attrBlacklist = array ('action', 'background', 'codebase',...etc". By removing 'action', from this list you will be allowing the action tag to be written.

IF you do this, ANYONE who can submit articles can now put action in tags and submit it which could potentially pose a security risk. If you will be the only one with any kind of write privileges on your site this is likely not so much of an issue, however if you are building a community site where there will be many people submitting articles I would recommend against this.

A simple alternative to this would be to simply make a link to a file that does not run within Joomla that has your contact form and script on it.
Thanks,
CDNKnights

inteltone
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Jan 15, 2011 10:36 am

Re: An issue with a contact form

Post by inteltone » Mon Jan 17, 2011 3:46 pm

Thanks a lot, CDNKnights. Your advice has helped me. Now everything works very well!

CDNKnights
Joomla! Guru
Joomla! Guru
Posts: 541
Joined: Fri Oct 15, 2010 7:19 pm
Location: Canada

Re: An issue with a contact form

Post by CDNKnights » Mon Jan 17, 2011 3:55 pm

That's great! I'm glad I could help.
Thanks,
CDNKnights

utten
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Feb 05, 2011 8:52 pm

Re: An issue with a contact form

Post by utten » Sat Feb 05, 2011 8:59 pm

Hi, I guess that this is the same problem I have when i make a mouse over on an image, when i save the mouse over lines disapears ?

CDNKnights
Joomla! Guru
Joomla! Guru
Posts: 541
Joined: Fri Oct 15, 2010 7:19 pm
Location: Canada

Re: An issue with a contact form

Post by CDNKnights » Wed Feb 09, 2011 1:04 pm

That's entirely possible. You may want to look at using CSS as a fix for your mouseover problems. What is the code you are using? Can you provide a link to page that is giving you the problems? If I can see it I'll have a better idea of where to start.

If you're simply using something like:

Code: Select all

<a href="link.html"><img src="file-name.jpg" onmouseover="your-code" onmouseout="your-code" /></a>
The blacklist isn't what's filtering that out. What editor are you using to write this article?
Thanks,
CDNKnights

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: An issue with a contact form

Post by mcsmom » Thu Feb 10, 2011 1:01 pm

Please don't hack core code.
Go to the filters and for super admins set filtering to none.
Be aware that this could be dangerous if you let people you don't trust or who don't know what they are doing have no filtering.
This is not a performance issue by the way. Performance has to do with things like how fast your pages load.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Locked

Return to “Performance - Joomla! 2.5”