Unit test OC_Files::setUploadLimit()
There was also a bug with checking the upper limit on the passed upload size. PHP does funny things with integer vs float comparisons, so our check didn't work. Now the check is much simpler, and ensures the value is sane.
Showing
- lib/private/files.php 11 additions, 14 deletionslib/private/files.php
- tests/data/setUploadLimit/htaccess 60 additions, 0 deletionstests/data/setUploadLimit/htaccess
- tests/data/setUploadLimit/user.ini 7 additions, 0 deletionstests/data/setUploadLimit/user.ini
- tests/lib/files.php 135 additions, 0 deletionstests/lib/files.php
Loading
Please register or sign in to comment