Blog

A Blog by DotJoomla

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.

Joomla 2.5.14 gives blank page while searching in chrome

Posted by on in Joomla
  • Font size: Larger Smaller
  • Hits: 8939
  • 0 Comments
  • Subscribe to this entry
  • Print

I happened to came across an issue in the joomla version 2.5.14 and it seems like this error was there in all previous versions.
To reproduce the error simply search a keyword with apostrophe(for eg L'Illustration ) in chrome.

This is however working fine in firefox. We need to change some code in the joomla core files to fix the issue unless and until joomla team fixes it in their latest release.

In the file libraries/joomla/environment/uri.php around line 191, comment these line

// Check for quotes in the URL to prevent injections through the Host header
				/*if ($theURI !== str_replace(array("'", '"', '<', '>'), '', $theURI))
				{
					throw new InvalidArgumentException('Invalid URI detected.');
				}*/

And add these lines

$theURI = str_replace(array("'", '"', '<', '>'), array("%27", "%22", "%3C", "%3E"), $theURI);
0

Vijay Singh is a web Developer with vast experience in the field. Has developed hundreds of websites. He is also a hobbiest blogger. He writes blogs when he is free ( not usually though ).

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Sunday, 22 December 2024

Blog Archive

Login Form

Who's Online

We have 84 guests and no members online