because it need be check for success, is should not change the old way if it failure. fix ticket: 8674
Unified · Split
| @@ -182,7 +182,7 @@ void ff_make_absolute_url(char *buf, int size, const char *base, · 181 unmodified lines | |||
| 182 | 182 | ||
| 183 | /* Remove the file name from the base url */ | 183 | /* Remove the file name from the base url */ |
| 184 | sep = strrchr(buf, '/'); | 184 | sep = strrchr(buf, '/'); |
| 185 | if (sep <= root) | 185 | if (sep && sep <= root) |
| 186 | sep = root; | 186 | sep = root; |
| 187 | 187 | ||
| 188 | if (sep) | 188 | if (sep) |