Forum Support

Shape 5
September 22, 2021, 11:50:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: htmlentities on url  (Read 273 times)
robbrown
Jr. Member
**
Offline Offline

Posts: 4



« on: November 05, 2008, 06:28:18 AM »

If SEF URL's are not being used frontpage display will not validate as XHTML.

Something like the following should be added:

Code:
$s5_fd_box1_link = htmlentities($s5_fd_box1_link);
$s5_fd_box2_link = htmlentities($s5_fd_box2_link);
$s5_fd_box3_link = htmlentities($s5_fd_box3_link);
$s5_fd_box4_link = htmlentities($s5_fd_box4_link);
$s5_fd_box5_link = htmlentities($s5_fd_box5_link);
$s5_fd_box6_link = htmlentities($s5_fd_box6_link);
« Last Edit: November 05, 2008, 06:34:00 AM by robbrown » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: November 05, 2008, 07:32:52 AM »

Hello, the module is 100% xhtml compliant. The non-SEF urls that Joomla exports for menus are actually what are not xhtml compliant. The module is simply displaying the links. You would need to first set your site up for SEF and then copy the SEF urls and use those for the module.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
robbrown
Jr. Member
**
Offline Offline

Posts: 4



« Reply #2 on: November 06, 2008, 06:27:17 AM »

Quote
Hello, the module is 100% xhtml compliant.
The module is 100% xhtml complient assuming the data in all the parameters are complient.

Quote
The module is simply displaying the links.
If your module is going to display Joomla's links then it should first run htmlentities.

How about if I was to link to 'http://www.google.co.uk/search?q=xhtml'. This would then make my page invalid. A user shouldn't have to encode the URL's before they enter them. The module should check a URL like this before it is displayed.

Quote
You would need to first set your site up for SEF and then copy the SEF urls and use those for the module.
You shouldn't have to enable SEF url's to generate a XHTML complient page.

In addition, none of the content boxes are checked. I personally don't think that the user should have to encode their quote marks and ampersand signs etc.


Thanks for your reply.
Dave
« Last Edit: November 06, 2008, 06:30:20 AM by robbrown » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.