git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb930ff
)
Base: Add decode_hexurl function
author
Ralf Ertzinger
<ralf@skytale.net>
Wed, 3 Aug 2011 21:10:58 +0000
(23:10 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Wed, 3 Aug 2011 21:10:58 +0000
(23:10 +0200)
videosite/Base.pm
patch
|
blob
|
history
diff --git
a/videosite/Base.pm
b/videosite/Base.pm
index
55a15e6
..
577eb52
100644
(file)
--- a/
videosite/Base.pm
+++ b/
videosite/Base.pm
@@
-178,4
+178,13
@@
sub ua {
return LWP::UserAgent->new('agent' => 'Mozilla/5.0', 'cookie_jar' => HTTP::Cookies->new);
}
+sub decode_hexurl {
+ my $self = shift;
+ my $d = shift;
+
+ $d =~ s/%([[:xdigit:]]{2})/chr(hex($1))/ge;
+
+ return $d;
+}
+
1;