diff options
| author | fengweihao <[email protected]> | 2024-11-20 10:03:12 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-11-20 10:03:12 +0800 |
| commit | ff436e3f26b93d3c6a71b650ca917643fc5e4d54 (patch) | |
| tree | bff1ef36de84407b3bc8cf66e0e423865b8c704a /plugin/business/tsg-http/include/pattern_replace.h | |
| parent | bbf084acad01102befc1fdfe916bc7209da08c50 (diff) | |
TSG-23793 Fixed the issue where comments in the HTML page containing <head> or <body> tags would cause the inserted script to fail
Diffstat (limited to 'plugin/business/tsg-http/include/pattern_replace.h')
| -rw-r--r-- | plugin/business/tsg-http/include/pattern_replace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/business/tsg-http/include/pattern_replace.h b/plugin/business/tsg-http/include/pattern_replace.h index a486b6c..783533b 100644 --- a/plugin/business/tsg-http/include/pattern_replace.h +++ b/plugin/business/tsg-http/include/pattern_replace.h @@ -35,6 +35,7 @@ struct insert_rule size_t execute_replace_rule(const char * in, size_t in_sz, enum replace_zone zone, const struct replace_rule * rules, size_t n_rule, char** out, int options); size_t execute_insert_rule(char * in, size_t in_sz, const struct insert_rule * rules, char** out); size_t insert_string(char * in, size_t in_sz, const char *insert_on, const char *stype, const char *type, char** out); +size_t simple_insert(char * in, size_t in_sz, const char *insert_on, const char *script, const char *type, char** out); void simple_replace(const char* find, const char* replacement, const char* input, size_t in_sz, char** output, size_t *output_sz, int options); enum replace_zone zone_name_to_id(const char * name); |
