From 237f1387a5410de5b85f2d9ee564c193ea896bf9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 26 Jul 2007 01:17:03 +0200 Subject: [PATCH] Micro-modularization. --- perl/Sesse/pr0n/Common.pm | 9 +++++++++ perl/Sesse/pr0n/Index.pm | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 6c3d7e4..098c9d3 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -152,6 +152,15 @@ sub pretty_escape { return $value; } +sub pretty_unescape { + my $value = shift; + + # URI unescaping is already done for us + $value =~ s/_/ /g; + + return $value; +} + sub print_link { my ($r, $title, $baseurl, $param, $defparam, $accesskey) = @_; my $str = "