• Encountered what appears to be a regex bug which causes a certain naming pattern to be excluded. It seems to affect file names that match the following regex:

    /(\d{2})x(\d+)/ig

    The following examples would be excluded:

    • abc123x321.jpg
    • 12X32.png

    The following examples would not be affected:

    • X123xX321.jpg
    • 1×32.png
Viewing 1 replies (of 1 total)
  • Thread Starter agbruce

    (@agbruce)

    Found the culprit. Line 13 in lib/inc/inc.filters.php:

    $excluded = preg_match('/\d{2,}[Xx]\d{2,}\./', $file) ? true : false;

    I simply commented it out, as it didn’t work as intended either*.

    *This is due to me using customdata, which produces thumbnail filenames like _thumb_lrg_wd_TESTIMG_300x300 [TEST,4 okt 2016].jpg.

Viewing 1 replies (of 1 total)
  • The topic ‘Filenames ending in e.g. 12×34 are excluded’ is closed to new replies.