Commit a18eb768 authored by flapflap's avatar flapflap Committed by Bernhard Link

allow '+' character in method-URI

parent 51ece3b1
......@@ -219,7 +219,7 @@ retvalue aptmethod_newmethod(struct aptmethodrun *run, const char *uri, const ch
method->child = -1;
method->status = ams_notstarted;
p = uri;
while (*p != '\0' && (*p == '_' || *p == '-' ||
while (*p != '\0' && (*p == '_' || *p == '-' || *p == '+' ||
(*p>='a' && *p<='z') || (*p>='A' && *p<='Z') ||
(*p>='0' && *p<='9'))) {
p++;
......
......@@ -825,7 +825,7 @@ retvalue config_geturl(struct configiterator *iter, const char *header, char **r
return RET_ERROR;
}
p = value;
while (*p != '\0' && (*p == '_' || *p == '-' ||
while (*p != '\0' && (*p == '_' || *p == '-' || *p == '+' ||
(*p>='a' && *p<='z') || (*p>='A' && *p<='Z') ||
(*p>='0' && *p<='9'))) {
p++;
......
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