-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daily trace summary AJAX action field can contain commas #90
Comments
I've changed the code to detect a comma in the action. If present it wraps the action in double quotes "/wordpress/plugins/download/?plugin=oik-bwtrace-debug-trace-for-wordpress&version=3.0.0-RC2&id=37451&action=download.%2C%29%2C%29%27%29%29%22%27,download","download.%2C%29%2C%29%5C%27%29%29%5C%22%5C%27%2Cdownload",2.126263,8.3.3,1285,4642,475,42,779,28,43,27,11,0.015740156173706,C:/apache/htdocs/wordpress/bwtrace3/bwtraces.loh.7,92,0,12043,127.0.0.1,2.126087,2024-09-17T16:12:44+00:00,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML; like Gecko) Chrome/128.0.0.0 Safari/537.36,GET,200 |
Having made the change I ran slog. Count: 45 Too many columns: "/wordpress/plugins/download/?plugin=oik-bwtrace-debug-trace-for-wordpress&version=3.0.0-RC2&id=37451&action=download.%2C%29%2C%29%27%29%29%22%27,download",download.,),)'))"',download,2.336032,8.3.3,1285,4642,484,42,790,28,43,27,13,0.082084655761719,C:/apache/htdocs/wordpress/bwtrace3/bwtraces.loh.3,92,0,12129,127.0.0.1,2.335801,2024-09-17T16:00:00+00:00,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML; like Gecko) Chrome/128.0.0.0 Safari/537.36,GET,200 I edited the daily trace summary and ran it again. |
Note: the |
To support PHP 8.n we need to change the default value of action to an empty string, otherwise |
The following line in the daily trace summary file from oik-plugins.co.uk for 20200209 has a AJAX action which contains unescaped commas.
/plugins/download/?plugin=oik-bwtrace-debug-trace-for-wordpress&version=3.0.0-RC2&id=37451&action=download.%2C%29%2C%29%27%29%29%22%27,download.,),)'))"',0.340538,7.3.14,1726,4709,400,44,464,57,34,20,19,0.010370969772339,,,,7588,45.227.255.149,0.340430,2020-02-09T02:15:51+00:00,Opera/9.80 (Windows NT 5.2; U; en) Presto/2.2.15 Version/10.00,GET
This causes problems for post processing of the daily trace summary files.
The text was updated successfully, but these errors were encountered: