summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-11-07 16:51:18 +0800
committerfengweihao <[email protected]>2024-11-07 16:51:18 +0800
commit9eb87f2a15c647baf980e549ddd6cb1dc64faaaa (patch)
tree070c61c53d19abd1a8ee5b9a7a39f5b40279dcf9 /plugin
parentec75b72bd9707c809f1ce08883256a8188a5c11f (diff)
TSG-23483 Change after_page_load to html_body in Inject Javascript policy.v4.10.9-20241107
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/tsg-http/src/pattern_replace.cpp2
-rw-r--r--plugin/business/tsg-http/src/tsg_http.cpp10
2 files changed, 1 insertions, 11 deletions
diff --git a/plugin/business/tsg-http/src/pattern_replace.cpp b/plugin/business/tsg-http/src/pattern_replace.cpp
index 4b7f2ad..d9167fd 100644
--- a/plugin/business/tsg-http/src/pattern_replace.cpp
+++ b/plugin/business/tsg-http/src/pattern_replace.cpp
@@ -278,7 +278,7 @@ size_t insert_string(char * in, size_t in_sz, const char *insert_on, const char
return 0;
}
- if (insert_on != NULL && 0==strcasecmp(insert_on, "after_page_load"))
+ if (insert_on != NULL && 0==strcasecmp(insert_on, "html_body"))
{
insert_from=strstr(in, "</body>");
}
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp
index 9da3642..4c0a4b3 100644
--- a/plugin/business/tsg-http/src/tsg_http.cpp
+++ b/plugin/business/tsg-http/src/tsg_http.cpp
@@ -914,16 +914,6 @@ void ma_insert_profile_table_new_cb(const char *table_name, const char* key, con
{
ply_profile->profile_name=tfe_strdup(profile_name->valuestring);
}
- cJSON *format = cJSON_GetObjectItem(insert_script, "format");
- if(format && format->type==cJSON_String)
- {
- ply_profile->profile_type=tfe_strdup(format->valuestring);
- }
- cJSON *insert_on = cJSON_GetObjectItem(insert_script, "insert_on");
- if(insert_on && insert_on->type==cJSON_String)
- {
- ply_profile->profile_position=tfe_strdup(insert_on->valuestring);
- }
cJSON *item = cJSON_GetObjectItem(insert_script, "path");
if(item && item->type==cJSON_String)
{