<p>In app/controllers/changeset_controller.rb:</p>
<pre style='color:#555'>> @@ -202,6 +202,12 @@ def query
>        bbox = BoundingBox.from_bbox_params(params)
>      end
>  
> +    if params[:limit] and params[:limit].to_i > 0 and params[:limit].to_i < 10000
> +      limit = params[:limit].to_i
> +    else
> +      limit = 100
</pre>
<p>I think you should throw an <code>OSM::APIBadUserInput</code> exception if the limit is not valid, rather than just ignoring it. Something like:</p>

<div class="highlight highlight-ruby"><pre><span class="k">raise</span> <span class="no">OSM</span><span class="o">::</span><span class="no">APIBadUserInput</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="s2">"Changeset limit must be between 1 and 10000"</span><span class="p">)</span>
</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/535/files#r8109784'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpr3r7npI5IAQ9ukMFq8NIbw8YMYi7ad0axWOQSbTZ7T0.gif' height='1' width='1'></p>