Tagged Questions
4
votes
2answers
401 views
Parsing URL segments
The .htaccess file redirects all requests to this file and the $_REQUEST['path'] variable contains the url after the base url.
$url = '';
$urlSegments = [];
$resource = '';
$action = '';
$parameters ...
4
votes
1answer
84 views
Is my PHP script/embed remover robust?
The goal of this question:
Your goal here is to find a security hole in my code which allows a user to create input that contains a script doing anything they want, without that script being stopped ...
3
votes
2answers
142 views
A simple compiler for a language called Jack
Below is the code for a compiler I created for a language called Jack. This compiler is one of the projects for the book "The Elements of Computing Systems" (http://www1.idc.ac.il/tecs/plan.html) ...
3
votes
4answers
524 views
URI parsing and handling class
I wrote a simple class to deal with parsing and handling URIs for the project I'm currently working on, since it relies a lot on that functionality (eg the Router class and some HTML helpers). Here is ...
3
votes
3answers
133 views
Parsing Placeholders as SQL Arguments in PHP
I am trying to find a good way of parsing SQL arguments, the way I am accomplishing it now seems like it can use a lot of improvement. I am trying to convert arguments that are split apart by ', & ...
3
votes
3answers
560 views
73 Lines of Mayhem - Parse, Sort and Save to CSV in PHP CLI
Inside of a folder named txt I have 138 text files (totaling 349MB) full of email addresses. I have no idea (yet) how many addresses there are. They are separated from one another by line breaks. I ...
3
votes
1answer
190 views
Unicode parsing in PHP
Firstly, apologies if this is not the correct type of question for here, I had it on the stackoverflow but it was closed with a suggestion I post here.
I’m in the process of converting from Latin 15 ...
3
votes
1answer
49 views
Have I missed some obvious XSS vulnerabilities?
As the question states: have I missed some obvious security vulnerabilities in this code? Particularly interested in XSS...
I'm trying to create something more robust that strip_tags, but simpler ...