summaryrefslogtreecommitdiff
path: root/ext/standard/url_scanner_ex.re
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/url_scanner_ex.re')
-rw-r--r--ext/standard/url_scanner_ex.re2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re
index 5cc16c7ece..7994925b1c 100644
--- a/ext/standard/url_scanner_ex.re
+++ b/ext/standard/url_scanner_ex.re
@@ -450,7 +450,7 @@ static void php_url_scanner_output_handler(char *output, uint output_len, char *
ctx->result.len = 0;
smart_str_free(&ctx->buf);
} else {
- *handled_output = NULL;
+ *handled_output = estrndup(output, *handled_output_len = output_len);
}
} else {
*handled_output = NULL;