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
|
||||
useSpecialChars = False
|
||||
allowListing = False
|
||||
hostedURL = "http://localhost:5000/"
|
||||
hostedURL = "http://paste.benjamyn.love/"
|
||||
|
||||
letters = string.ascii_letters
|
||||
if useSpecialChars:
|
||||
@ -63,7 +63,7 @@ def index():
|
||||
return render_template("post.html")
|
||||
elif request.method == "POST":
|
||||
data = request.get_data().decode()
|
||||
if "Submit+Query" in data:
|
||||
if "buttonwaspushed" in data:
|
||||
data = request.form['textarea']
|
||||
name = randomName()
|
||||
while doesPasteExist(name):
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
<form action="http://paste.benjamyn.love" method="post" class="card">
|
||||
<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>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user