View more context

 

tractorcow

In DBFile add this

  1. protected function isValidFilename($filename)
  2. {
  3. $extension = strtolower(File::get_file_extension($filename));
  4.  
  5. // Validate true if within the list of allowed extensions
  6. $allowed = $this->getAllowedExtensions();
  7. if ($allowed) {
  8. $ok = in_array($extension, $allowed);
  9. if (!$ok) {
  10. var_dump($allowed);
  11. var_dump($extension);
  12. die;
  13. }
  14. return $ok;
  15. }
bendubuisson

@tractorcow I get the same error but via the notification thingy instead 😛

bendubuisson

must do I commented out the method of the same name, let me xdebug through it

tractorcow

What I need is a stacktrace or something...

bendubuisson

not sure why but when I publish it looks like it's validating a shitloads of other images