Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

NavData.class.php replaces valid waypoint if it contains SID #121

@nasserbq

Description

@nasserbq

The code in core / common / NavData.class.php supposedly strips out any occurrence of "SID" or "STAR" in the route. However, the function used is str_replace:
$route_string = str_replace('SID', '', $route_string);

This causes valid waypoints such as "SIDAD" to be changed to AD with the "SID" part stripped. It caused our VA admin heartache until I dug into the issue.

Recommend perhaps using preg_replace() with regexp to avoid stripping "SID" or "STAR" only when they occur alone and not as a substring.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions