Fixed some inconsistancies
This commit is contained in:
1 parent
2334bbccf9
commit
24f3d00602
2 files changed
+3
-3
No files matched your search
@@ -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):
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user