PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.2.90
WindPress – Tailwind CSS integration for WordPress v3.2.90
3.2.90 3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 All 144 releases
← All changes | vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +5 -4 3.0.03.2.90 View file →
@@ -7,12 +7,12 @@
7 7 *
8 8 * For the full copyright and license information, please view the LICENSE
9 9 * file that was distributed with this source code.
10 10 */
11 -namespace WindPressPackages\Symfony\Component\Finder\Iterator;
11 +namespace WindPressDeps\Symfony\Component\Finder\Iterator;
12 12
13 -use WindPressPackages\Symfony\Component\Finder\Exception\AccessDeniedException;
14 -use WindPressPackages\Symfony\Component\Finder\SplFileInfo;
13 +use WindPressDeps\Symfony\Component\Finder\Exception\AccessDeniedException;
14 +use WindPressDeps\Symfony\Component\Finder\SplFileInfo;
15 15 /**
16 16 * Extends the \RecursiveDirectoryIterator to support relative paths.
17 17 *
18 18 * @author Victor Berchet <victor@suumit.com>
@@ -61,9 +61,10 @@
61 61 if ('' !== $subPathname) {
62 62 $subPathname .= $this->directorySeparator;
63 63 }
64 64 $subPathname .= $this->getFilename();
65 - if ('/' !== $basePath = $this->rootPath) {
65 + $basePath = $this->rootPath;
66 + if ('/' !== $basePath && !str_ends_with($basePath, $this->directorySeparator) && !str_ends_with($basePath, '/')) {
66 67 $basePath .= $this->directorySeparator;
67 68 }
68 69 return new SplFileInfo($basePath . $subPathname, $this->subPath, $subPathname);
69 70 }