Pass the file's basename to the validation regex in StyleEditor::export()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Dec 2021 10:19:25 +0000 (11:19 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Dec 2021 10:20:15 +0000 (11:20 +0100)
This fixes 84f62ddac1ba9894a9cbb8791085f7799f3760c8.

wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 41dae2e47182e4a788ce09e84e3c0f9f8addd5f4..93a1bad7c998afc3eb881729ea3b4b7a8ecdfd63 100644 (file)
@@ -1066,7 +1066,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                 if (!$file->isFile()) {
                     continue;
                 }
-                if (!$regEx->match($file->getPathName())) {
+                if (!$regEx->match($file->getBasename())) {
                     continue;
                 }