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

Add multiple languages? #4

Open
plessbd opened this issue Dec 5, 2016 · 6 comments
Open

Add multiple languages? #4

plessbd opened this issue Dec 5, 2016 · 6 comments

Comments

@plessbd
Copy link

plessbd commented Dec 5, 2016

I have not had the chance to look into the code, but how hard would it be to add other languages.

Like Perl, python, java, javascript?

@laurent22
Copy link
Owner

Should be relatively easy. The changes to make would be:

  • Add the regexes to this file to detect the SQL injections:

https://github.com/laurent22/so-sql-injections/blob/master/src/AppBundle/InjectionFinder.php

  • Add a "language" property to the question table so that we know which programming language was used.

  • Add the relevant language tags (js, python, etc.) to the StackExchange API query:

https://github.com/laurent22/so-sql-injections/blob/master/src/AppBundle/StackExchangeApi.php

And I think that's about it for the backend. Then it's all about updating the front-end to take these other languages into account.

If you or someone else is interested in developing this, feel free to submit a PR.

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

No branches or pull requests

3 participants
@plessbd @laurent22 and others