feat: add BlogBodySanitizer for HTML sanitization on article save
- Implemented BlogBodySanitizer to clean HTML content before saving articles, ensuring security against XSS attacks. - Added tests for BlogBodySanitizer to verify that unsafe tags and attributes are stripped from the content. - Introduced ApiLeastPrivilegeTest to ensure that unauthorized users cannot access sensitive API routes, maintaining strict access control.
This commit is contained in:
@@ -24,7 +24,7 @@ vi.mock('../components/ClinicDoctorsManager', () => ({
|
||||
default: () => <div data-testid="doctors-manager" />,
|
||||
}));
|
||||
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import { Routes, Route } from 'react-router';
|
||||
import { api } from '../lib/api';
|
||||
import { useAuthStore } from '../stores/authStore';
|
||||
import ClinicDetailPage from './ClinicDetailPage';
|
||||
|
||||
Reference in New Issue
Block a user