Announcement

#1 2015-08-06 12:59:52

Longhorn
Guest

Bug on downloads

Hello/Hi/Greetings,

I've noticed that download does nothing on my server so I've checked the code and noticed that on action.php file, around line 163 there is a condition like this:

if ( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']))

I can't understand why but this var was set but it's empty, so the download returned 304 always, I've fixed it by changing that line into:

if ( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && !empty($_SERVER['HTTP_IF_MODIFIED_SINCE']))

and this way it works fine. Just wanted to report it here because may be this fix should be added on next Piwigo version

Piwigo version: 2.7.4
PHP version: 5.3
MySQL version:
Piwigo URL: http://localhost

 

#2 2015-08-06 13:04:19

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: Bug on downloads

Hi Longhorn,

Which web server do you have? Apache, Nginx, something else?


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact