调整qrcode参数获取的限制为200
This commit is contained in:
parent
381fbfa67b
commit
f741cb8456
|
@ -1,7 +1,7 @@
|
||||||
class QrcodesController < ApplicationController
|
class QrcodesController < ApplicationController
|
||||||
def show
|
def show
|
||||||
str = params[:str].to_s
|
str = params[:str].to_s
|
||||||
max_length = 50
|
max_length = 200
|
||||||
if str.length > max_length
|
if str.length > max_length
|
||||||
render nothing: true, status: 404
|
render nothing: true, status: 404
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue