Add files via upload

This commit is contained in:
Tomáš Dvořák
2025-05-21 13:21:46 +02:00
committed by GitHub
parent db484a637b
commit 4d0f7d9b2e
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -148,7 +148,7 @@
<p class="text-xs text-gray-500 mb-2">Systém pro správu a sledování firemních úkolů</p> <p class="text-xs text-gray-500 mb-2">Systém pro správu a sledování firemních úkolů</p>
</div> </div>
</div> </div>
<button onclick="openWindowsFolder('M:\\10. MANAGEMENT ÚKOLŮ')" class="block w-full text-center bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm py-1 px-3 rounded transition-colors mt-2"> <button onclick="openWindowsFolder('C:\\Users\\conta\\Downloads\\PROG+HTML')" class="block w-full text-center bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm py-1 px-3 rounded transition-colors mt-2">
<i class="fas fa-folder-open mr-1"></i> Otevřít složku <i class="fas fa-folder-open mr-1"></i> Otevřít složku
</button> </button>
</div> </div>
+1 -1
View File
@@ -197,7 +197,7 @@ func handleOpenFolder(w http.ResponseWriter, r *http.Request) {
// Sanitize the path (basic security - you might want to add more validation) // Sanitize the path (basic security - you might want to add more validation)
// Ensure it's a valid Windows network path // Ensure it's a valid Windows network path
if !strings.HasPrefix(req.Path, "M:\\") { if !strings.HasPrefix(req.Path, "C:\\") {
w.WriteHeader(http.StatusBadRequest) w.WriteHeader(http.StatusBadRequest)
json.NewEncoder(w).Encode(map[string]string{"error": "Only network paths on M: drive are allowed"}) json.NewEncoder(w).Encode(map[string]string{"error": "Only network paths on M: drive are allowed"})
return return