Improperly intercepting $_POST[‘offset’]
-
Hello,
When indexing posts with FacetWP, WebToffee is (improperly) intercepting
$_POST['offset']
The code in question lies at class-import-ajax.php:181:
$offset=(isset($_POST['offset']) ? intval($_POST['offset']) : 0);
$export_id=(isset($_POST['export_id']) ? intval($_POST['export_id']) : 0);There aren’t any checks in place (like
$_POST['action']
) to ensure that this offset stems from WebToffee itself.Or maybe to keep things simple, short circuit the export() call if
$_POST['export_id']
is undefined, instead of giving it a default of 0?Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Improperly intercepting $_POST[‘offset’]’ is closed to new replies.