| 298 | } |
| 299 | |
| 300 | static int has_relation(link_ctx *ctx, const char *rel) |
| 301 | { |
| 302 | const char *s, *val = apr_table_get(ctx->params, "rel"); |
| 303 | if (val) { |
| 304 | if (!strcmp(rel, val)) { |
| 305 | return 1; |
| 306 | } |
| 307 | s = ap_strstr_c(val, rel); |
| 308 | if (s && (s == val || s[-1] == ' ')) { |
| 309 | s += strlen(rel); |
| 310 | if (!*s || *s == ' ') { |
| 311 | return 1; |
| 312 | } |
| 313 | } |
| 314 | } |
| 315 | return 0; |
| 316 | } |
| 317 | |
| 318 | static int add_push(link_ctx *ctx) |
| 319 | { |
no test coverage detected