Sweep all .cshtml files for encoding corruption; add pre-commit guard
Replace all corruption variants with HTML entities across 226 view files: - 3-char UTF-8-as-Win1252 sequences (ae-corruption) - Standalone smart/curly quotes that break C# Razor expressions - Partially re-corrupted variants where the 3rd byte was normalised to ASCII tools/Fix-Encoding.ps1: re-runnable sweep; uses [char] code points so the script itself never contains a literal non-ASCII character; supports -DryRun .githooks/pre-commit: blocks commits containing the ae-corruption byte signature (xc3xa2xe2x82xac); git core.hooksPath = .githooks so the hook is repo-committed and active for all future work on this machine. Build clean; 225 unit tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-semibold">AI Assistant</div>
|
||||
<div class="text-muted small">Ask anything — available 24/7 in the bottom-right corner.</div>
|
||||
<div class="text-muted small">Ask anything — available 24/7 in the bottom-right corner.</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-sm btn-outline-success flex-shrink-0"
|
||||
onclick="document.getElementById('aiHelpTrigger')?.click()">
|
||||
@@ -122,7 +122,7 @@
|
||||
<div class="col-md-6">
|
||||
<label asp-for="Form.Category" class="form-label fw-semibold"></label>
|
||||
<select asp-for="Form.Category" class="form-select">
|
||||
<option value="">— Select a Category —</option>
|
||||
<option value="">— Select a Category —</option>
|
||||
@foreach (var cat in ContactFormModel.Categories)
|
||||
{
|
||||
<option value="@cat" selected="@(Model.Form.Category == cat)">@cat</option>
|
||||
|
||||
@@ -105,7 +105,7 @@ else
|
||||
<div class="mb-0">
|
||||
<label class="form-label fw-semibold">Admin Note <span class="text-muted fw-normal">(optional)</span></label>
|
||||
<textarea name="adminNotes" class="form-control" rows="3"
|
||||
placeholder="e.g. Replied via email, escalated to billing, resolved…"></textarea>
|
||||
placeholder="e.g. Replied via email, escalated to billing, resolved…"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
Reference in New Issue
Block a user