+5
-11
@@ -89,15 +89,9 @@ 'use strict' | ||
| if (!trusted && !this.unsafeMap) { | ||
| if (!/\.map$/i.test(path)) { | ||
| if (!/\.map$/i.test(path)) return undefined | ||
| if (!cssFile) return undefined | ||
| let rel = relative(dirname(cssFile), path) | ||
| if (rel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel)) { | ||
| return undefined | ||
| } | ||
| if (cssFile) { | ||
| let relativePath = relative(dirname(cssFile), path) | ||
| if ( | ||
| relativePath === '..' || | ||
| relativePath.startsWith('..' + sep) || | ||
| isAbsolute(relativePath) | ||
| ) { | ||
| return undefined | ||
| } | ||
| } | ||
| } | ||
@@ -104,0 +98,0 @@ this.root = dirname(path) |
+1
-1
@@ -10,3 +10,3 @@ 'use strict' | ||
| constructor(plugins = []) { | ||
| this.version = '8.5.22' | ||
| this.version = '8.5.23' | ||
| this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
+1
-1
| { | ||
| "name": "postcss", | ||
| "version": "8.5.22", | ||
| "version": "8.5.23", | ||
| "description": "Tool for transforming styles with JS plugins", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+1
-2
@@ -16,4 +16,3 @@ # PostCSS | ||
| <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Built by | ||
| <b><a href="https://evilmartians.com/devtools?utm_source=postcss&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, go-to agency for <b>developer tools</b>. | ||
| <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> PostCSS is built by <b><a href="https://evilmartians.com/>Evil Martians</a></b>, an American design and engineering consultancy for <b>developer tools, AI, and cybersecurity startups</b>. | ||
@@ -20,0 +19,0 @@ --- |
216017
-0.04%7347
-0.1%25
-3.85%