fix(security): remediate audit vulnerabilities SEC-001 through SEC-023
This commit is contained in:
1 parent
dc88677169
commit
bd49fbc4a0
31 files changed
+867
-114
No files matched your search
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import DOMPurify from "dompurify";
|
||||
import SafeImage from "../SafeImage";
|
||||
import { Product } from "../../lib/data/products";
|
||||
import { X, ShieldCheck, CheckCircle2, Award, Stethoscope, Sparkles, Layers, Info } from "lucide-react";
|
||||
@@ -77,7 +78,11 @@ export default function ProductDetailModal({ product, categoryColor = "#0284C7",
|
||||
</span>
|
||||
{/<[a-z][\s\S]*>/i.test(product.description || '') ? (
|
||||
<div
|
||||
dangerouslySetInnerHTML={{ __html: product.description || '' }}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: typeof window !== 'undefined'
|
||||
? DOMPurify.sanitize(product.description || '')
|
||||
: product.description || '',
|
||||
}}
|
||||
className="text-sm text-slate-600 leading-relaxed font-medium space-y-2 [&>h1]:font-black [&>h2]:font-black [&>h3]:font-black [&>p]:leading-relaxed [&>ul]:list-disc [&>ul]:pr-4 [&>ol]:list-decimal [&>ol]:pr-4 text-justify"
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user