Permitir nodos con mayúsculas
This commit is contained in:
4
Makefile
4
Makefile
@ -6,8 +6,8 @@ RUN ?= nobody
|
||||
# Hacer que las opciones estén disponibles
|
||||
export
|
||||
|
||||
rap-inbox: shard.lock src/rap-inbox.cr
|
||||
crystal build --release $^
|
||||
rap-inbox: src/rap-inbox.cr shard.lock
|
||||
crystal build --release $<
|
||||
strip --strip-all $@
|
||||
|
||||
service := /etc/systemd/system/rap-inbox.service
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: rap-inbox
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
authors:
|
||||
- rené montes <renemontes@partidopirata.com.ar>
|
||||
|
||||
@ -9,7 +9,7 @@ post "/:host" do |env|
|
||||
host = env.params.url["host"]
|
||||
|
||||
# Sólo letras, números y guiones bajos
|
||||
unless host =~ /\A[a-z0-9_]+\z/
|
||||
unless host =~ /\A[a-z0-9_]+\z/i
|
||||
halt env, status_code: 403, response: "Forbidden"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user