Skip to content
Permalink
Browse files

Prevent user from using a single quote in an AS path (see #81).

  • Loading branch information...
respawner committed Aug 5, 2019
1 parent 2131cdd commit 439f7fd4f47011aa0bfc7ee067904326904870dc
Showing with 6 additions and 0 deletions.
  1. +6 −0 includes/utils.php
@@ -261,6 +261,12 @@ function match_aspath_regexp($aspath_regexp) {
return false;
}
// AS path containing a ' (not a valid character, the string is automatically
// quoted if needed)
if (strpos($aspath_regexp, '\'') !== false) {
return false;
}
// Check if the AS path regexp in in the list of regexp considered as
// invalid (see config option)
foreach ($config['filters']['aspath_regexp'] as $invalid_aspath_regexp) {

0 comments on commit 439f7fd

Please sign in to comment.
You can’t perform that action at this time.