Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added sqlite3 integration for managing client data using database tools #1

Merged
merged 2 commits into from
Jan 19, 2017

Conversation

hitanshup
Copy link
Collaborator

No description provided.

@hitanshup hitanshup requested a review from Cisplatin January 19, 2017 02:02
function addUrlToDb(shrunk, url, expiry) {
db.serialize(function() {
var stmt = db.prepare("INSERT INTO user_info VALUES (?,?,?)");
stmt.run(shrunk, url, expiry);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this sanitize data, or is this vulnerable to an SQL injection?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TryGhost/node-sqlite3#57 so I think yes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and by yes I mean yes it sanitizes :p lol

@Cisplatin
Copy link
Owner

+1

@Cisplatin Cisplatin merged commit f27dc1b into master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants