Fixed some inconsistancies
This commit is contained in:
parent
2334bbccf9
commit
24f3d00602
4
paste.py
4
paste.py
@ -11,7 +11,7 @@ pasteDir = Path("pastes")
|
|||||||
nameLength = 10
|
nameLength = 10
|
||||||
useSpecialChars = False
|
useSpecialChars = False
|
||||||
allowListing = False
|
allowListing = False
|
||||||
hostedURL = "http://localhost:5000/"
|
hostedURL = "http://paste.benjamyn.love/"
|
||||||
|
|
||||||
letters = string.ascii_letters
|
letters = string.ascii_letters
|
||||||
if useSpecialChars:
|
if useSpecialChars:
|
||||||
@ -63,7 +63,7 @@ def index():
|
|||||||
return render_template("post.html")
|
return render_template("post.html")
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
data = request.get_data().decode()
|
data = request.get_data().decode()
|
||||||
if "Submit+Query" in data:
|
if "buttonwaspushed" in data:
|
||||||
data = request.form['textarea']
|
data = request.form['textarea']
|
||||||
name = randomName()
|
name = randomName()
|
||||||
while doesPasteExist(name):
|
while doesPasteExist(name):
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<form action="http://paste.benjamyn.love" method="post" class="card">
|
<form action="http://paste.benjamyn.love" method="post" class="card">
|
||||||
<textarea name="textarea" style="height:600px;"></textarea>
|
<textarea name="textarea" style="height:600px;"></textarea>
|
||||||
|
|
||||||
<input type="submit" name="data" class="btn btn-outline-secondary">
|
<input type="submit" name="buttonwaspushed" class="btn btn-outline-secondary">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user