Ticket #7849: xmlrpc.php.diff
| File xmlrpc.php.diff, 465 bytes (added by josephscott, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: xmlrpc.php |
| 2 | =================================================================== |
| 3 | --- xmlrpc.php (revision 9099) |
| 4 | +++ xmlrpc.php (working copy) |
| 5 | @@ -2150,7 +2150,11 @@ |
| 6 | |
| 7 | if (is_array($catnames)) { |
| 8 | foreach ($catnames as $cat) { |
| 9 | - $post_category[] = get_cat_ID($cat); |
| 10 | + // get_cat_ID() uses prepare further down, so we need to |
| 11 | + // prevent double escaping |
| 12 | + $cat = stripslashes( $cat ); |
| 13 | + |
| 14 | + $post_category[] = get_cat_ID( $cat ); |
| 15 | } |
| 16 | } |
| 17 |
