You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
I will verify the issue tomorrow evening.
On Dec 15, 2013 5:45 PM, "nasserbq" [email protected] wrote:
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 drove our VA admin nuts for a while 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.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/121
.
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.
The text was updated successfully, but these errors were encountered: