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

Open
opened 2026-10-04 23:44:20 +02:00 by adam · 2 comments
Owner

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

**Reported by plg on 7 May 2010 22:21** **Version:** 2.0.0 On several Piwigo installations I&#039;ve found on the web, I realized that the &quot;Random pictures&quot; feature was bringing me back to the gallery home. Today I&#039;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 &quot;problem&quot; 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 =&gt; Piwigo finds nothing in the $_GET and goes back home. [Piwigo Bugtracker #1651](http://piwigo.org/bugs/view.php?id=1651) <!-- github-sync-id:97226093 -->
Author
Owner

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.

**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. <!-- github-comment-id:124892039 -->
Author
Owner

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

**Comment posted by VDigital on 11 May 2010 10:43** Unique string saved in session means we can&#039;t forward the link. Another idea: Lists could be saved in #_search.rules <!-- github-comment-id:124892072 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#130