Skip to content

Commit

Permalink
Do not change dev name in LanItemsClass#Items via reference. bnc#869776
Browse files Browse the repository at this point in the history
Moreover LanItems.Items[key]["ifcfg"] can be immutable, so it could
raise an exception.
  • Loading branch information
mchf committed Mar 27, 2014
1 parent c3db27b commit 237a798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/LanItems.rb
Expand Up @@ -1285,7 +1285,7 @@ def BuildLanOverview
IsEmpty(NetworkInterfaces.Current["WIRELESS_KEY_0"])

# avoid colons
ifcfg_name.tr!(":", "/")
ifcfg_name = ifcfg_name.tr(":", "/")
href = "lan--wifi-encryption-" + ifcfg_name
# interface summary: WiFi without encryption
warning = HTML.Colorize(_("Warning: no encryption is used."), "red")
Expand Down

0 comments on commit 237a798

Please sign in to comment.