Author: jdsn Date: Sat Sep 1 09:11:54 2007 New Revision: 40667 URL: http://svn.opensuse.org/viewcvs/yast?rev=40667&view=rev Log: check parameters of ratio and display size (#288730) 2.15.11 Modified: trunk/x11/VERSION trunk/x11/package/yast2-x11.changes trunk/x11/src/XLib.pm Modified: trunk/x11/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/x11/VERSION?rev=40667&r1=40666&r2=40667&view=diff ============================================================================== --- trunk/x11/VERSION (original) +++ trunk/x11/VERSION Sat Sep 1 09:11:54 2007 @@ -1 +1 @@ -2.15.10 +2.15.11 Modified: trunk/x11/package/yast2-x11.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/x11/package/yast2-x11.changes?rev=40667&r1=40666&r2=40667&view=diff ============================================================================== --- trunk/x11/package/yast2-x11.changes (original) +++ trunk/x11/package/yast2-x11.changes Sat Sep 1 09:11:54 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Sat Sep 1 02:12:01 CEST 2007 - jdsn@suse.de + +- 2.15.11 +- check parameters of ratio and display size (#288730) + +------------------------------------------------------------------- Fri May 25 13:30:04 CEST 2007 - jsrain@suse.cz - removed outdated translations from .desktop-files (#271209) Modified: trunk/x11/src/XLib.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/x11/src/XLib.pm?rev=40667&r1=40666&r2=40667&view=diff ============================================================================== --- trunk/x11/src/XLib.pm (original) +++ trunk/x11/src/XLib.pm Sat Sep 1 09:11:54 2007 @@ -235,6 +235,12 @@ my @ratios = split (/\//,$list[1]); my $aspect = $ratios[0]; my $ratio = $ratios[1]; + + # (#288730) check for validity of parameters + if ($traversal !~ /^\d+(\.\d+)?$/ ) {$traversal="15"; } + if ($aspect !~ /^\d+$/ ) {$aspect="4"; } + if ($ratio !~ /^\d+$/ ) {$ratio="3"; } + $mDesktop->setDisplayRatioAndTraversal ( $traversal,$aspect,$ratio ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org