Преглед изворни кода

Fix UTF-8 BOM causing garbled output above <nav> in admin pages

admin_dashboard.php, config.php, and edit_application.php were saved with a
UTF-8 BOM (EF BB BF). PHP outputs those 3 bytes before any HTML, which the
browser interprets as body content — pushing <head> empty and everything else
into <body>. Stripped BOM from all three files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Benjamin Harris пре 2 недеља
родитељ
комит
34a557220d
3 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      contracts/admin_dashboard.php
  2. 1 1
      contracts/config.php
  3. 1 1
      contracts/edit_application.php

+ 2 - 2
contracts/admin_dashboard.php

@@ -1,4 +1,4 @@
-<?php
+<?php
 error_reporting(E_ALL);
 ini_set("display_errors", 1);
 
@@ -47,7 +47,7 @@ $applications = $stmt->fetchAll();
     <head>
         <meta charset="utf-8">
         <meta name="viewport" content="width=device-width, initial-scale=1">
-        <title>Admin Dashboard  Application Stages</title>
+        <title>Admin Dashboard - Application Stages</title>
         <link rel="shortcut icon" href="../internal/images/blueprint.ico" type="image/x-icon">
 
         <meta name="robots" content="noindex">

+ 1 - 1
contracts/config.php

@@ -1,4 +1,4 @@
-<?php
+<?php
 // Load shared .env so credentials stay out of version control
 call_user_func(function () {
     $p = __DIR__ . '/../internal/.env';

+ 1 - 1
contracts/edit_application.php

@@ -1,4 +1,4 @@
-<?php
+<?php
 error_reporting(E_ALL);
 ini_set("display_errors", 1);