mirror of
https://github.com/neocities/neocities.git
synced 2025-07-05 02:23:26 +02:00
more strict integer checks
This commit is contained in:
parent
1d87b87e62
commit
f7e65ec61b
10 changed files with 30 additions and 21 deletions
|
@ -143,7 +143,7 @@ def stripe_get_site_from_event(event)
|
|||
site_where = {username: desc_split.first}
|
||||
end
|
||||
|
||||
if desc_split.last.to_i == 0
|
||||
if desc_split.last.not_an_integer?
|
||||
site_where = {username: desc_split.first}
|
||||
else
|
||||
site_where = {id: desc_split.last}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue