Skip to content

Commit

Permalink
AP: reject both single and double quotes at beginning of URI
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed May 9, 2024
1 parent 986d744 commit e5cdcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poptracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ bool PopTracker::start()
return;
// strip leading and trailing white space
strip(uri);
// leading slash and leading " is probably a copy & paste error
bool badUri = uri.empty() || uri[0] == '/' || uri[0] == '\'';
// leading slash and quote is probably a copy & paste error
bool badUri = uri.empty() || uri[0] == '/' || uri[0] == '\'' || uri[0] == '"';
if (!badUri) {
// check if URI is all digits, which is not fine
badUri = true;
Expand Down

0 comments on commit e5cdcf1

Please sign in to comment.