Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -213,6 +213,8 @@ |
214 | 214 | calculated correctly with respect to timezone |
215 | 215 | * (bug 32219) InstantCommons now fetches content from Wikimedia Commons using |
216 | 216 | HTTPS when the local wiki is served over HTTPS |
| 217 | +* (bug 33482) - Api incorrectly calls ApiBase::parseMultiValue if allowed |
| 218 | + values is given as an array |
217 | 219 | |
218 | 220 | === API changes in 1.19 === |
219 | 221 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -959,6 +959,11 @@ |
960 | 960 | } |
961 | 961 | |
962 | 962 | if ( !$allowMultiple && count( $valuesList ) != 1 ) { |
| 963 | + // Bug 33482 - Allow entries with | in them for non-multiple values |
| 964 | + if ( in_array( $value, $allowedValues ) ) { |
| 965 | + return $value; |
| 966 | + } |
| 967 | + |
963 | 968 | $possibleValues = is_array( $allowedValues ) ? "of '" . implode( "', '", $allowedValues ) . "'" : ''; |
964 | 969 | $this->dieUsage( "Only one $possibleValues is allowed for parameter '$valueName'", "multival_$valueName" ); |
965 | 970 | } |