Posts Tagged with "bad code"

Regular expressions? What's that? Part 2.

Posted by Stanislav Furman on June 2, 2014
A good example of how NOT to code.

Regular expressions? What's that?

Posted by Stanislav Furman on April 29, 2014

Apparently, the person who wrote this code has never heard about regular expressions. :)

<?php
$find = str_replace(",", "", $find);
$find = str_replace(".", "", $find);
$find = str_replace("/", "", $find);
$find = str_replace(" ", "", $find);
$find = str_replace("-", "", $find);
$find = str_replace("+", "", $find);
$find = str_replace("#", "", $find);
?>

Please, never repeat this! :)


This password is already in use. Old school security fail.

Posted by Stanislav Furman on April 23, 2014
Old school security fail.