Move lowercase
This commit is contained in:
parent
3efadc6797
commit
a8a57c0004
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ app.get("/makeURL", (req, res) => {
|
|||
var config = fileHandler.config
|
||||
writep("HTML Loaded.")
|
||||
|
||||
var url = req.query.url.toLowerCase()
|
||||
var url = req.query.url
|
||||
|
||||
if (!url.includes("http://") && !url.includes("https://")) {
|
||||
writep("Error: URL is missing protocol! Please include http:// or https:// in the URL for it to be valid.")
|
||||
|
@ -37,7 +37,7 @@ app.get("/makeURL", (req, res) => {
|
|||
}
|
||||
domain = domain.substring(0, domain.indexOf("/"))
|
||||
|
||||
domain = domain.substring(domain.lastIndexOf(".", domain.lastIndexOf(".") - 1) + 1)
|
||||
domain = domain.substring(domain.lastIndexOf(".", domain.lastIndexOf(".") - 1) + 1).toLowerCase()
|
||||
|
||||
|
||||
writep("Input URL: " + url)
|
||||
|
|
Loading…
Reference in a new issue