Index: trunk/phase3/includes/upload/UploadFromUrl.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $desiredDestName = $request->getText( 'wpUploadFileURL' ); |
70 | 70 | return $this->initialize( |
71 | 71 | $desiredDestName, |
72 | | - $request->getVal( 'wpUploadFileURL' ), |
| 72 | + trim( $request->getVal( 'wpUploadFileURL' ) ), |
73 | 73 | false |
74 | 74 | ); |
75 | 75 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -157,6 +157,8 @@ |
158 | 158 | exist. |
159 | 159 | * (bug 27763) Article::getParserOutput() no longer throws a fatal given when an |
160 | 160 | incorrect revision ID is passed. |
| 161 | +* Trim the form field for uploading by url to remove extra spaces which could |
| 162 | + cause confusing error messages. |
161 | 163 | |
162 | 164 | === API changes in 1.18 === |
163 | 165 | * (bug 26339) Throw warning when truncating an overlarge API result |