Skip to content

Commit 653ea8c

Browse files
committed
#1.13.4 Bug Fix: CURLOPT_HTTPHEADER set with underscores caused issue on some stacks
1 parent b073e7c commit 653ea8c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

classes/core_metrics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function update_metrics()
4242
@curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
4343
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
4444
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
45-
@curl_setopt($ch, CURLOPT_HTTPHEADER, array('LS_STATS: 1'));
45+
@curl_setopt($ch, CURLOPT_HTTPHEADER, array('LS_STATS: 1', 'LS-STATS: 1'));
4646
@curl_setopt($ch, CURLOPT_TIMEOUT, 30);
4747
@curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
4848

helpers/core_http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function sub_request($url, $fields, $timeout = 60)
112112
if (isset($_SERVER['HTTP_COOKIE']))
113113
@curl_setopt($ch, CURLOPT_COOKIE, $_SERVER['HTTP_COOKIE']);
114114

115-
@curl_setopt($ch, CURLOPT_HTTPHEADER, array('LS_SUBQUERY: 1'));
115+
@curl_setopt($ch, CURLOPT_HTTPHEADER, array('LS_SUBQUERY: 1', 'LS-SUBQUERY: 1'));
116116

117117
@session_write_close();
118118

updates/version.dat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,4 +464,5 @@
464464
#1.13.0|@1.13.0 Added subscribe to crontab and add to cronjob support
465465
#1.13.1 Bug Fix: sql now() being compared to localised PHP datetime causing cron timing issues.
466466
#1.13.2|@1_13_2_framework_update Security fix
467-
#1.13.3|@1_13_3_framework_update Evocode Security Patch. Must read http://evocode.com/blog/lemonstand-v1-vulnerability/
467+
#1.13.3|@1_13_3_framework_update Evocode Security Patch. Must read http://evocode.com/blog/lemonstand-v1-vulnerability/
468+
#1.13.4 Bug Fix: CURLOPT_HTTPHEADER set with underscores caused issue on some stacks

0 commit comments

Comments
 (0)