Project

General

Profile

Actions

Bug #12498

closed

Input validation error can unintentionally result in removal of PPP type interface settings

Added by Steve Wheeler about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Web Interface
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.01
Release Notes:
Default
Affected Version:
2.5.2
Affected Architecture:
All

Description

If you edit a PPPoE interface through, for example, Interfaces > WAN (interfaces.php) and change the password but do no enter matching passwords the selected physical interface is removed.
Resulting in config:

        <ppp>
            <ptpid>0</ptpid>
            <type>pppoe</type>
            <if>pppoe0</if>
            <ports></ports>
            <username><![CDATA[test]]></username>
            <password><![CDATA[dGVzdDQ=]]></password>
            <provider>testy</provider>
            <bandwidth></bandwidth>
            <mtu></mtu>
            <mru></mru>
            <mrru></mrru>
            <hostuniq></hostuniq>
        </ppp>

This does not happen if editing through Interfaces > Assignments > PPPs (interfaces_ppps_edit.php) where the selected interface is part of the input fields.

Actions

Also available in: Atom PDF