Author: aschnell Date: Wed Dec 10 12:04:48 2008 New Revision: 54018 URL: http://svn.opensuse.org/viewcvs/yast?rev=54018&view=rev Log: - escape HTML tags (bnc #450496) Modified: trunk/storage/storage/src/modules/StorageFields.ycp Modified: trunk/storage/storage/src/modules/StorageFields.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/StorageFields.ycp?rev=54018&r1=54017&r2=54018&view=diff ============================================================================== --- trunk/storage/storage/src/modules/StorageFields.ycp (original) +++ trunk/storage/storage/src/modules/StorageFields.ycp Wed Dec 10 12:04:48 2008 @@ -18,6 +18,7 @@ import "Mode"; import "HTML"; import "Integer"; + import "String"; /** @@ -440,7 +441,7 @@ return value; else // row label, %1 is replace by device name - return sformat(_("Device: %1"), value); + return sformat(_("Device: %1"), String::EscapeTags(value)); } case `size: @@ -501,7 +502,7 @@ return value; else // row label - return sformat(_("Type: %1"), value); + return sformat(_("Type: %1"), String::EscapeTags(value)); } case `format: @@ -552,7 +553,7 @@ return value; else // row label, %1 is replace by mount point e.g. "/mnt" - return sformat(_("Mount Point: %1"), value); + return sformat(_("Mount Point: %1"), String::EscapeTags(value)); } case `mount_by: @@ -577,7 +578,7 @@ return value; else // row label, %1 is replace by used by device name e.g. /dev/system - return sformat(_("Used By: %1"), value); + return sformat(_("Used By: %1"), String::EscapeTags(value)); } case `uuid: @@ -597,7 +598,7 @@ return value; else // row label, %1 is replace by file system label - return sformat(_("Label: %1"), value); + return sformat(_("Label: %1"), String::EscapeTags(value)); } case `udev_path: @@ -650,7 +651,7 @@ return value; else // row label, %1 is replace by vendor name - return sformat(_("Vendor: %1"), value); + return sformat(_("Vendor: %1"), String::EscapeTags(value)); } case `model: @@ -660,7 +661,7 @@ return value; else // row label, %1 is replace by model string - return sformat(_("Model: %1"), value); + return sformat(_("Model: %1"), String::EscapeTags(value)); } case `bus: @@ -829,7 +830,7 @@ return value; else // row label, %1 is replace by file path e.g. "/data/secret" - return sformat(_("File Path: %1"), value); + return sformat(_("File Path: %1"), String::EscapeTags(value)); } case `fc_wwpn: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org