Project

General

Profile

« Previous | Next » 

Revision 5a158a29

Added by Renato Botelho over 10 years ago

Fix track6 prefix id range check, reported by jimp

View differences:

usr/local/www/interfaces.php
610 610
				$input_errors[] = gettext("You must enter a valid hexadecimal number for the IPv6 prefix ID.");
611 611
			} else {
612 612
				$track6_prefix_id = intval($_POST['track6-prefix-id--hex'], 16);
613
				if ($track6_prefix_id < 0 || $track6_prefix_id >= $_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]) {
613
				if ($track6_prefix_id < 0 || $track6_prefix_id > $_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]) {
614 614
					$input_errors[] = gettext("You specified an IPv6 prefix ID that is out of range. ({$_POST['track6-interface']}) - ({$_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]}) - ({$ipv6_delegation_length})");
615 615
				} else {
616 616
					foreach ($ifdescrs as $ifent => $ifdescr) {

Also available in: Unified diff