mirror of
https://github.com/neocities/neocities.git
synced 2025-08-11 20:09:26 +02:00
placeholder for spam/phish prevention filtering
This commit is contained in:
parent
66fdbab21e
commit
f4c7467ea0
1 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Site < Sequel::Model
|
||||||
IMAGE_REGEX = /jpg|jpeg|png|bmp|gif/
|
IMAGE_REGEX = /jpg|jpeg|png|bmp|gif/
|
||||||
LOSSLESS_IMAGE_REGEX = /png|bmp|gif/
|
LOSSLESS_IMAGE_REGEX = /png|bmp|gif/
|
||||||
LOSSY_IMAGE_REGEX = /jpg|jpeg/
|
LOSSY_IMAGE_REGEX = /jpg|jpeg/
|
||||||
HTML_REGEX = /htm|html/
|
HTML_REGEX = /.html$|.htm$/
|
||||||
MAX_COMMENT_SIZE = 420 # Used to be the limit for Facebook.. no comment (PUN NOT INTENDED).
|
MAX_COMMENT_SIZE = 420 # Used to be the limit for Facebook.. no comment (PUN NOT INTENDED).
|
||||||
|
|
||||||
SCREENSHOT_RESOLUTIONS = ['540x405', '210x158', '100x100', '50x50']
|
SCREENSHOT_RESOLUTIONS = ['540x405', '210x158', '100x100', '50x50']
|
||||||
|
@ -534,6 +534,10 @@ class Site < Sequel::Model
|
||||||
save_changes(validate: false)
|
save_changes(validate: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if pathname.extname.match HTML_REGEX
|
||||||
|
# SPAM and phishing checking code goes here
|
||||||
|
end
|
||||||
|
|
||||||
dirname = pathname.dirname.to_s
|
dirname = pathname.dirname.to_s
|
||||||
|
|
||||||
if !File.exists? dirname
|
if !File.exists? dirname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue