Skip to content

Commit cf31b51

Browse files
authored
fix: encode sql queries (#443)
1 parent 0545c9d commit cf31b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/slow-queries.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<x-pulse::td class="!p-0 truncate max-w-[1px]">
6464
<div class="relative">
6565
<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]">
66-
<code class="px-3">{!! $this->wantsHighlighting() ? $sqlFormatter->highlight($query->sql) : $query->sql !!}</code>
66+
<code class="px-3">{!! $this->wantsHighlighting() ? $sqlFormatter->highlight($query->sql) : e($query->sql) !!}</code>
6767
@if ($query->location)
6868
<p class="px-3 mt-3 text-xs leading-none text-gray-400 dark:text-gray-500">
6969
{{ $query->location }}

0 commit comments

Comments
 (0)