Post by straightlight » Fri Jun 24, 2016 6:06 pm

Just to provide one possibility on avoiding malformed URL from the route case in system/library/url.php file when troubleshooting.

Find:

Code: Select all

if ($args) {
add right above:

Code: Select all

$args_quoted = preg_quote($args, '/');
		
		$url = preg_replace(array('/' . $args_quoted . '/', '/[^a-zA-Z0-9\_[?|&]\=\\/]/'), '', $url);
By restricting the queries to $args, it is already validating between an array or otherwise when either case type are not empty while the $route variable doesn't handle that.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 56 guests