Skip to content

Commit

Permalink
fix: encode sql queries (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelej authored Feb 9, 2025
1 parent 0545c9d commit cf31b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/livewire/slow-queries.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<x-pulse::td class="!p-0 truncate max-w-[1px]">
<div class="relative">
<div class="bg-gray-700 dark:bg-gray-800 py-4 rounded-md text-gray-100 block text-xs whitespace-nowrap overflow-x-auto [scrollbar-color:theme(colors.gray.500)_transparent] [scrollbar-width:thin]">
<code class="px-3">{!! $this->wantsHighlighting() ? $sqlFormatter->highlight($query->sql) : $query->sql !!}</code>
<code class="px-3">{!! $this->wantsHighlighting() ? $sqlFormatter->highlight($query->sql) : e($query->sql) !!}</code>
@if ($query->location)
<p class="px-3 mt-3 text-xs leading-none text-gray-400 dark:text-gray-500">
{{ $query->location }}
Expand Down

0 comments on commit cf31b51

Please sign in to comment.