Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
3cc76575
Verified
Commit
3cc76575
authored
Mar 31, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quick-settings: validate D-Bus variant types and sanitize SSID
parent
7f91a63b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
bluetoothProxy.vala
src/controlCenter/widgets/quickSettings/bluetoothProxy.vala
+6
-3
networkManagerProxy.vala
...trolCenter/widgets/quickSettings/networkManagerProxy.vala
+1
-1
powerProfilesTile.vala
...Center/widgets/quickSettings/tiles/powerProfilesTile.vala
+2
-1
No files found.
src/controlCenter/widgets/quickSettings/bluetoothProxy.vala
View file @
3cc76575
...
...
@@ -250,9 +250,12 @@ namespace XimperShellNotificationCenter.Widgets {
DBusConnection
conn
,
string
?
sender
,
string
path
,
string
iface
,
string
signal
,
Variant
params
)
{
string
iface_name
;
params
.
get_child
(
0
,
"s"
,
out
iface_name
);
if
(
iface_name
==
"org.bluez.Device1"
)
{
if
(
params
.
n_children
()
==
0
)
return
;
Variant
child
=
params
.
get_child_value
(
0
);
if
(!
child
.
is_of_type
(
VariantType
.
STRING
))
{
return
;
}
if
(
child
.
get_string
()
==
"org.bluez.Device1"
)
{
load_devices
.
begin
();
}
}
...
...
src/controlCenter/widgets/quickSettings/networkManagerProxy.vala
View file @
3cc76575
...
...
@@ -171,7 +171,7 @@ namespace XimperShellNotificationCenter.Widgets {
}
public
static
string
ssid_to_string
(
uint8
[]
ssid
)
{
return
(
string
)
ssid
;
return
(
(
string
)
ssid
).
make_valid
()
;
}
public
static
string
get_signal_icon
(
uint8
strength
)
{
...
...
src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala
View file @
3cc76575
...
...
@@ -44,7 +44,8 @@ namespace XimperShellNotificationCenter.Widgets {
profile_names
=
{};
foreach
(
var
profile
in
proxy
.
profiles
)
{
Variant
?
v
=
profile
.
lookup
(
"Profile"
);
if
(
v
!=
null
)
{
if
(
v
!=
null
&&
v
.
is_of_type
(
VariantType
.
STRING
))
{
profile_names
+=
v
.
get_string
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment