Hinnerk Altenburg

Web Developer in Hamburg, Germany

Strip all HTML tags with Perl like PHP’s strip_tags() does

leave a comment

The Perl regular expression (regexp/regex) equivalent to PHP’s strip_tags() is:

while ($string =~ s/<\S[^<>]*(?:>|$)//gs) {};

Please note that it also denotes an opening “<” (followed by a non-whitespace character) as a tag and strips all characters behind, even it is not closed by a “>”. This is the same behavior as PHP’s strip_tags().

Update: This regexp is only satisfying my test against PHP 4.x, but 5.x is pretty smarter when it comes to edge cases. It will be a challenge to build a Perl equivalent as all the different approaches in CPAN also fail the test.

Update 2010-07-07: I’m currently porting strip_tags() from the C source code of PHP 5.3.2 to a CPAN Module. Stay tuned.

Written by Hinnerk

December 23rd, 2009 at 2:30 pm

Posted in English

Tagged with , , , ,

Share: Share with your XING contacts

Moved from epublica GmbH to XING AG

leave a comment

As per February, 1st I moved with epublica’s entire XING.com core development team to the XING AG itself, now developing the platform ‘inhouse’ as XING employee.

Written by Hinnerk

February 6th, 2009 at 12:16 pm

Posted in English

Tagged with , , , ,

Share: Share with your XING contacts

PerlIDS-Artikel im deutschen Perl-Magazin $foo erschienen

leave a comment

Mein vierseitiger Artikel zum Perl-CPAN-Modul CGI::IDS ist in der aktuellen Ausgabe 1/2009 des deutschen Perl-Magazins $foo erschienen.
Ich gebe darin einen Überblick über die Funktion und den Einsatz von PerlIDS zur frühzeitigen Erkennung von CrossSite-Scripting, SQL-Injections und ähnlichen Angriffen auf Webapplikationen.

I just published a four pages long article in the German Perl magazine $foo about my Perl CPAN module CGI::IDS, a Website Intrusion Detection System.

Written by Hinnerk

February 3rd, 2009 at 6:27 pm

Posted in Deutsch

Tagged with , , , , ,

Share: Share with your XING contacts

OpenSource Perl Website Intrusion Detection System PerlIDS (CGI::IDS) released

with one comment

Today, we at epublica have officially released my work of the last months – a Perl port of PHPIDS, a tool for detection of Cross-Site-Scripting (XSS), Cross-Site-Request-Forgery (CSRF), SQL-Injections (SQLI), Local-File-Inclusions (LFI) etc. in website requests.
The tool is released as CGI::IDS Perl module ‘PerlIDS’ on CPAN.org under the OpenSource ‘Lesser GNU Public License’ (LGPL).

Read the rest of this entry »

Written by Hinnerk

November 6th, 2008 at 1:36 pm

Posted in English

Tagged with , , , , , ,

Share: Share with your XING contacts

Einsatz von Google Analytics nun mit Datenschutzhinweis rechtmäßig

leave a comment

Laut einem Artikel auf heise.de ist nun nach einer Aussage des Bundesverband Digitale Wirtschaft (BVDW) endlich die seit einiger Zeit durch Datenschützer entdeckte Unsicherheit bzgl. des Einsatzes des populären und kostenfreien Website Analyse- und Statistiktools Google Analytics auf deutschen Websites ausgeräumt. Als kritisch wurde u.a. die Übermittlung der Nutzungsdaten und vor allem der IP-Adressen der Websitebesucher zu Google Inc. in die USA – also außerhalb der strengeren deutschen und europäischen Datenschutzbestimmungen – erachtet.

Google hat nun auf dieses Problem reagiert und seine Google Analytics AGB im Punkt “8. DATENSCHUTZ” angepasst:

Read the rest of this entry »

Written by Hinnerk

October 11th, 2008 at 11:18 pm

Posted in Deutsch

Tagged with , , , ,

Share: Share with your XING contacts

Relaunch of Derix Glasstudios website finally online

leave a comment

The relaunch of the corporate website of Derix Glasstudios, Taunusstein/Germany and Derix Art Glass Consultants, Portland/USA is now finally online!

I have already concepted and developed it in 2005 and I am happy to see it online now! The website is developed in PHP/MySQL with a custom-made admin interface.

Derix Glasstudios have been founded in 1866 and are today making art glass for prominent projects all over the world.

[Update] The website is now available in Russian and Spanish, too.

[Update] I am now also doing search engine optimization and Google AdWords campaigns for them.

[Update] Redesign now online with a new color theme and lightbox project viewer and AJAX projects preview using Prototype JS and Scriptaculous.

Written by Hinnerk

July 16th, 2008 at 11:15 pm

Two TYPO3 OpenSource extensions published

leave a comment

I am now the author of two TYPO3 extensions published in TER (TYPO3 Extension Repository). These extensions are frontend plugins that add functionality to the mm_forum extension.

exinit_latesttopics displays the latest forum topics in a box, exinit_pollwidget displays an AJAX box for forum polls to make voting possible on any page.

Written by Hinnerk

June 25th, 2008 at 12:20 am

Posted in English

Tagged with , , , , , ,

Share: Share with your XING contacts

My New Jobs since May 2008

leave a comment

Since May, I am employed by epublica GmbH, Hamburg, doing Perl development mainly for the XING Web platform. Have a look at their brand new office in the heart of the city upstairs from XING.

Also I am working as a freelancer for the TYPO3 agency EXINIT GmbH & Co. KG, Hamburg doing TYPO3 extension development in PHP.

Written by Hinnerk

June 25th, 2008 at 12:10 am

Posted in English

Tagged with , , , , , , , , ,

Share: Share with your XING contacts

Umstellung auf Wordpress / WordCamp 08 Hamburg

leave a comment

Anlässlich des aktuell stattfindenden WordCamp 08 in Hamburg habe ich meine Seite von SimplePHPblog auf Wordpress umgestellt. Da ich WordPress bereits seit einiger Zeit mehrfach beruflich einsetze, habe ich das WordCamp als Anlass genommen, diese Website endlich auch umzustellen.

Da hier auf dem WordCamp live “getwittert” wird, habe ich mir auch flugs einen Twitter-Account angelegt.

Momentan höre ich einen Vortrag zum Sandbox-Theming, für das ich mich gestern auch für diesen Blog entschieden habe. Scheint noch eine ganze Menge nützlicher CSS-Selektoren zu geben, mit denen ich mich mal in nächster Zeit auseinandersetzen werde.

Umstellung und Beitrag live aus dem WLAN vom WordCamp 08 in Hamburg!

Written by Hinnerk

January 26th, 2008 at 3:37 pm

Hinnerk Altenburg a.k.a. Hinnerk Voss

leave a comment

I am married now and changed my family name to my wife’s family name! From now on, I am no longer called Hinnerk Voss but Hinnerk Altenburg.

Ich habe geheirtatet und den Namen meiner Frau angenommen! Von nun an heiße ich nicht mehr Hinnerk Voss, sondern Hinnerk Altenburg.

Written by Hinnerk

October 26th, 2007 at 12:04 pm

Posted in Deutsch, English

Tagged with , ,

Share: Share with your XING contacts