mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 10:26:52 -06:00
feat: add admin panel with project and tag management
- Full CRUD interface for projects with GitHub integration and tagging - Real-time event log with expandable metadata viewer - Reusable component library (Badge, Button, Input, Modal, Table, TagPicker) - Server-side API client with Unix socket and HTTP support - JWT-based authentication with Svelte 5 reactive stores - Settings management for social links and site identity - Remove /admin path from tarpit to allow legitimate access
This commit is contained in:
+2
-3
@@ -125,8 +125,7 @@ pub fn is_malicious_path(path: &str) -> bool {
|
||||
}
|
||||
|
||||
// Admin panels
|
||||
if path_lower.starts_with("/admin")
|
||||
|| path_lower.starts_with("/administrator")
|
||||
if path_lower.starts_with("/administrator")
|
||||
|| path_lower.contains("phpmyadmin")
|
||||
{
|
||||
return true;
|
||||
@@ -473,7 +472,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_admin_panels() {
|
||||
assert!(is_malicious_path("/admin"));
|
||||
assert!(!is_malicious_path("/admin"));
|
||||
assert!(is_malicious_path("/administrator"));
|
||||
assert!(is_malicious_path("/phpmyadmin"));
|
||||
assert!(is_malicious_path("/phpMyAdmin"));
|
||||
|
||||
Reference in New Issue
Block a user