Piwigo / Piwigo

Manage your photos with Piwigo, a full featured open source photo gallery application for the web. Star us on Github! More than 200 plugins and themes available. Join us and contribute!
https://piwigo.org
GNU General Public License v2.0
3.18k stars 432 forks source link

[navigation] Random pictures goes back to gallery home #130

Open plegall opened 9 years ago

plegall commented 9 years ago

Reported by plg on 7 May 2010 22:21

Version: 2.0.0

On several Piwigo installations I've found on the web, I realized that the "Random pictures" feature was bringing me back to the gallery home.

Today I've reproduced this bug. I investigated and I realized that it was because I had reinstalled PHP 5.3, and Suhosin was automatically installed.

The "problem" is that Suhosin has a directive suhosin.request.max_array_index_length set to 64 by default. If /list/5114,3124,4551,1331,4104,4554,1137,3752,5189,5183,4703,5179,3129,4242,1330 is longer than 64, then it is skipped => Piwigo finds nothing in the $_GET and goes back home.

Piwigo Bugtracker #1651

plegall commented 9 years ago

Comment posted by nikrou on 8 May 2010 17:52

An idea : make a unique string in url associate with that list saved in session.

plegall commented 9 years ago

Comment posted by VDigital on 11 May 2010 10:43

Unique string saved in session means we can't forward the link.

Another idea: Lists could be saved in #_search.rules