Index: trunk/phase3/includes/api/ApiFormatYaml_spyc.php |
— | — | @@ -185,6 +185,9 @@ |
186 | 186 | else |
187 | 187 | $string = $spaces . "-\n"; |
188 | 188 | } else { |
| 189 | + if ($key == '*') //https://bugzilla.wikimedia.org/show_bug.cgi?id=21922 - Quote asterix used as keys |
| 190 | + $key = "'{$key}'"; |
| 191 | + |
189 | 192 | // It's mapped |
190 | 193 | if ( $value !== '' && !is_null( $value ) ) |
191 | 194 | $string = $spaces . $key . ': ' . $value . "\n"; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -803,6 +803,7 @@ |
804 | 804 | * (bug 22245) blfilterredirect=nonredirects in blredirect mode wrongly filtering |
805 | 805 | * (bug 22248) Output extension URLs in meta=siteinfo&siprop=extensions |
806 | 806 | * Support key-params arrays in 'descriptionmsg' in meta=siteinfo&siprop=extensions |
| 807 | +* (bug 21922) YAML output should quote asterisk when used as key |
807 | 808 | |
808 | 809 | === Languages updated in 1.16 === |
809 | 810 | |