Project

General

Profile

« Previous | Next » 

Revision c58db203

Added by Viktor Gurov over 3 years ago

Do not change ports value for PPPoE/L2TP/PPTP on interfaces.php page. Fixes #12498

View differences:

src/usr/local/www/interfaces.php
1336 1336
				$a_ppps[$pppid]['ptpid'] = $_POST['ptpid'];
1337 1337
				$a_ppps[$pppid]['type'] = $_POST['type'];
1338 1338
				$a_ppps[$pppid]['if'] = $_POST['type'].$_POST['ptpid'];
1339
				if (isset($_POST['ppp_port'])) {
1340
					$a_ppps[$pppid]['ports'] = $_POST['ppp_port'];
1341
				} else {
1342
					$a_ppps[$pppid]['ports'] = $wancfg['if'];
1343
				}
1344 1339
				$a_ppps[$pppid]['username'] = $_POST['pppoe_username'];
1345 1340
				if ($_POST['pppoe_password'] != DMYPWD) {
1346 1341
					$a_ppps[$pppid]['password'] = base64_encode($_POST['pppoe_password']);
......
1379 1374
				$a_ppps[$pppid]['ptpid'] = $_POST['ptpid'];
1380 1375
				$a_ppps[$pppid]['type'] = $_POST['type'];
1381 1376
				$a_ppps[$pppid]['if'] = $_POST['type'].$_POST['ptpid'];
1382
				if (isset($_POST['ppp_port'])) {
1383
					$a_ppps[$pppid]['ports'] = $_POST['ppp_port'];
1384
				} else {
1385
					$a_ppps[$pppid]['ports'] = $wancfg['if'];
1386
				}
1387 1377
				$a_ppps[$pppid]['username'] = $_POST['pptp_username'];
1388 1378
				if ($_POST['pptp_password'] != DMYPWD) {
1389 1379
					$a_ppps[$pppid]['password'] = base64_encode($_POST['pptp_password']);
......
3553 3543
	$if
3554 3544
));
3555 3545

  
3556
if ($wancfg['if'] == $a_ppps[$pppid]['if']) {
3557
	$form->addGlobal(new Form_Input(
3558
		'ppp_port',
3559
		null,
3560
		'hidden',
3561
		$pconfig['port']
3562
	));
3563
}
3564

  
3565 3546
$form->addGlobal(new Form_Input(
3566 3547
	'ptpid',
3567 3548
	null,

Also available in: Unified diff