FreshPorts / freshports

The website part of FreshPorts
http://www.freshports.org/
BSD 2-Clause "Simplified" License
70 stars 24 forks source link

Pagination problem #21

Closed dbaio closed 8 years ago

dbaio commented 8 years ago

Only the first 100 commits are shown, even if you click on other pages.

Example:

http://www.freshports.org/sysutils/apcupsd/?page=2 http://dev.freshports.org/sysutils/apcupsd/?page=2

dlangille commented 8 years ago

How does http://dev.freshports.org/sysutils/apcupsd/?page=2 look now?

dbaio commented 8 years ago

Looks great. http://dev.freshports.org/security/vuxml/?page=8

dlangille commented 8 years ago

I now wonder about the pagination on all other pages.

This is my patch to fix your issue:

-       if (isset($_SERVER['REDIRECT_QUERY_STRING'])) {
-          parse_str($_SERVER['REDIRECT_QUERY_STRING'], $query_parts);
+       if (isset($_SERVER['QUERY_STRING'])) {
+          parse_str($_SERVER['QUERY_STRING'], $query_parts);