forked from rDrama/rDrama
fdfd
parent
b1b9c6391d
commit
020277b3c8
|
@ -27,7 +27,9 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||||
|
|
||||||
try: cid = int(cid)
|
try: cid = int(cid)
|
||||||
except: cid = int(cid, 36)
|
except:
|
||||||
|
try: cid = int(cid, 36)
|
||||||
|
except: abort(404)
|
||||||
|
|
||||||
comment = get_comment(cid, v=v)
|
comment = get_comment(cid, v=v)
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,9 @@ def log(v):
|
||||||
def log_item(id, v):
|
def log_item(id, v):
|
||||||
|
|
||||||
try: id = int(id)
|
try: id = int(id)
|
||||||
except: id = int(id, 36)
|
except:
|
||||||
|
try: id = int(id, 36)
|
||||||
|
except: abort(404)
|
||||||
|
|
||||||
action=g.db.query(ModAction).filter_by(id=id).first()
|
action=g.db.query(ModAction).filter_by(id=id).first()
|
||||||
|
|
||||||
|
|
|
@ -493,7 +493,9 @@ def user_profile(username):
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
def user_profile_uid(uid):
|
def user_profile_uid(uid):
|
||||||
try: uid = int(uid)
|
try: uid = int(uid)
|
||||||
except: uid = int(uid, 36)
|
except:
|
||||||
|
try: uid = int(uid, 36)
|
||||||
|
except: abort(404)
|
||||||
x=get_account(uid)
|
x=get_account(uid)
|
||||||
return redirect(x.profile_url)
|
return redirect(x.profile_url)
|
||||||
|
|
||||||
|
|
|
@ -117,8 +117,10 @@ def api_vote_comment(comment_id, new, v):
|
||||||
new = int(new)
|
new = int(new)
|
||||||
|
|
||||||
try: comment_id = int(comment_id)
|
try: comment_id = int(comment_id)
|
||||||
except: comment_id = int(comment_id, 36)
|
except:
|
||||||
|
try: comment_id = int(comment_id, 36)
|
||||||
|
except: abort(404)
|
||||||
|
|
||||||
comment = get_comment(comment_id)
|
comment = get_comment(comment_id)
|
||||||
|
|
||||||
# check for existing vote
|
# check for existing vote
|
||||||
|
|
Loading…
Reference in New Issue