Fix RDP page buffer overflow and remove debug alerts

- Increased RDP HTML buffer size from 32768 to 65536 bytes to prevent truncation of the main script
- Removed debug alert statements from RDP page
- RDP page should now fully load and execute JavaScript

The RDP connection issue was caused by the HTML being truncated due to insufficient buffer size, preventing the main script from being served to the browser.
parent 3da8d956
...@@ -149,7 +149,6 @@ ...@@ -149,7 +149,6 @@
</style> </style>
</head> </head>
<body> <body>
<script>alert('Body script executed');</script>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container"> <div class="container">
<a class="navbar-brand" href="/"> <a class="navbar-brand" href="/">
......
...@@ -2441,7 +2441,7 @@ static int handle_request(int client_fd, const http_request_t *req) { ...@@ -2441,7 +2441,7 @@ static int handle_request(int client_fd, const http_request_t *req) {
return 0; return 0;
} }
// Generate RDP HTML with client_id // Generate RDP HTML with client_id
char html[32768]; char html[65536];
int len = snprintf(html, sizeof(html), rdp_page_html, int len = snprintf(html, sizeof(html), rdp_page_html,
client_id, client_id, client_id, client_id, client_id); client_id, client_id, client_id, client_id, client_id);
// No CSP header for RDP pages to avoid blocking WebAssembly // No CSP header for RDP pages to avoid blocking WebAssembly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment