Skip to content

Instantly share code, notes, and snippets.

@kharissulistiyo
Last active November 16, 2024 01:05
Show Gist options
  • Save kharissulistiyo/dc5bd9703a32d9b2e5f1d0fcfffff842 to your computer and use it in GitHub Desktop.
Save kharissulistiyo/dc5bd9703a32d9b2e5f1d0fcfffff842 to your computer and use it in GitHub Desktop.
WordPress API: patch SQL Injection vulnerability
<?php
foreach ($value as $k => $attr) {
$where .= $wpdb->prepare(" \n {$_or} ( list_attr_rel_" . $i . ".value = %d)", $attr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment