Notes
Notes - notes.io |
import re
def DataCleaning(pincode):
data=re.sub('^6[0-4]{1}[0-9]{4}','',pincode)
if len(data)!=6:
return {'status':'Shipping not available for selected address'},data
return {'status':'order placed'},data
File Name: app/route/ire_route.py
import sqlite3
from flask import Blueprint, render_template, abort, request, jsonify, make_response
from app.controller.controller import encodepassword, is_ire_challenge_completed
from app.extras.webvul_extras import log_users_request
import re
from app.extras.webvul_extras import log_file
from app.controller.ire_controller import DataCleaning
ire_app = Blueprint('ire_app', __name__, template_folder='templates')
@ire_app.route('/ire', methods=['GET', 'POST'])
@log_users_request(request=request)
def improper_regexp():
page_title = "Improper Regular Expression"
page_id = "ire"
if request.method=='POST':
data,status=DataCleaning(request.form['pincode'])
is_ire_challenge_completed(data, status, vulnerable_id=1)
return data
resp=make_response(render_template("ire.html", page_title=page_title, page_id=page_id, vulnerable_id=1))
return resp
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team