a blog by Brie Gordon
Brie Gordon

I'm Brie, a 22 year-old graduate of Slippery Rock University's Computer Science department. My interests include Linux (generally and Ubuntu), networking, BSD-style operating systems including my own, BrieSD, translating English-Spanish-English for open source projects and LAMP configuration. Aside from that, I enjoy photography, making short films and soccer.

Posterous is one of my favorite new(ish) web sites!


brie@briegordon.com

       

Search

February 23rd, 9:34am 0 comments

Programming sites should not throw errors...

Someone left a comment here on unixsysadmin.org promoting a programming site. I had to check it out. Turns out that they hadn't even taken care of their own website first. Clicking ">HERE<" and then "Coding" threw a whole bunch of errors. Like:


“; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = “##error##”; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array (“submit”, “reset”, “send”, “captcha_code”); $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace(“_”, ” “, $key)) . ” : ” . $value . $eol; } else { $message .= ucwords(str_replace(“_”, ” “, $key)) . ” : ” . implode(“,”, $value) . $eol; } } } $body = ‘This is a multi-part message in MIME format.’.$eol.$eol; $body .= ‘–’.$boundary.$eol; $body .= ‘Content-Type: text/plain; charset=iso-8859-1′.$eol; $body .= ‘Content-Transfer-Encoding: 8bit’.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] < = $max_filesize) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; mail($mailto, $subject, $body, $header); header('Location: '.$success_url); exit; } ?>

They've since fixed the error above.
Their site, which was built with WYSIWYGwebbuilder.com (I kid you not), does not validate.

I submitted a request for them to do some programming for me (they don't really mention what kind/language) and I was informed that:

YOUR MESSAGE HAVE BEEN SENT

What was weird is that the site has no advertisements (as of this writing) and their Twitter account, run by one Sébastien Landrieu is not following a million people without any followers yet.

The domain name was registered only today:

Creation Date: 22-feb-2010

You're thinking "It's spam...who cares?" and you're right. I don't really care; I just like checking stuff out. Also, I wanted to see how Posterous would handled quoted stuff. :-).

--Brie

P.S. - Posterous does not like signatures, it seems. What happens if I put content below a more subtle signature? Hmm...

Loading mentions Retweet
Posted 5 months ago

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter