Unverified Commit aeb2ac64 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #245 from milipili/possible-empty-string

Fixed potential empty path in Swagger description
parents 5ee03b76 54e2e82e
......@@ -387,7 +387,7 @@ Swagger::install(Rest::Router& router) {
: value(value)
, trailingSlashValue(value)
{
if (trailingSlashValue.back() != '/')
if (trailingSlashValue.empty() || trailingSlashValue.back() != '/')
trailingSlashValue += '/';
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment