Keyword search is incorrect when using view all link (v. 2.94 Build 1 - 4)

If your template includes the %SEARCH_CATALOG% form, a customer searches two or more words, and the search results in more than one page, a 'View All' link appears at the top and bottom of the search. The top 'View All' link points to the correct search result page, but the bottom 'View All' link does not. This is happening because the keyword is already encoded, leading to a double encode.

To correct this, open the products_pages.php file in the /enc/ folder and add:

$keyword =  preg_replace("/[^a-zA-Z0-9-'".ss+]+/", "", $_REQUEST['keyword']);

just under:

die("Cannot open file.");