/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/peek/Peek.FilePreviewer/Controls/BrowserControl.xaml
39 строк
2 KB
leileizhang
Fix Peek allowing Local File Inclusion (LFI) and RCE (#44601)
08 янв 2026, 09:57
Не верифицирован
08 янв 2026, 09:57
876130c
Код
Авторство
О чём код?
<!-- Copyright (c) Microsoft Corporation. All rights reserved. --> <!-- Licensed under the MIT License. See LICENSE in the project root for license information. --> <UserControl x:Class="Peek.FilePreviewer.Controls.BrowserControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="using:Peek.FilePreviewer.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid> <controls:WebView2 x:Name="PreviewBrowser" Loaded="PreviewWV2_Loaded" NavigationCompleted="PreviewWV2_NavigationCompleted" NavigationStarting="PreviewBrowser_NavigationStarting" /> <ContentDialog x:Name="OpenUriDialog" x:Uid="OpenUriDialog" PrimaryButtonStyle="{ThemeResource AccentButtonStyle}" SecondaryButtonClick="OpenUriDialog_SecondaryButtonClick"> <StackPanel Spacing="16"> <controls:InfoBar x:Name="OpenUriWarningBanner" x:Uid="OpenUriWarningBanner" IsClosable="False" IsOpen="True" Severity="Warning" /> <TextBlock x:Name="OpenUriDialogContent" IsTextSelectionEnabled="True" TextWrapping="Wrap" /> </StackPanel> </ContentDialog> </Grid> </UserControl>