SVN: toys/rsget.pl/Link/Simple

sparky sparky at pld-linux.org
Sun Jun 27 20:04:39 CEST 2010


Author: sparky
Date: Sun Jun 27 20:04:39 2010
New Revision: 11608

Modified:
   toys/rsget.pl/Link/Simple
Log:
- added anonym-to.com support


Modified: toys/rsget.pl/Link/Simple
==============================================================================
--- toys/rsget.pl/Link/Simple	(original)
+++ toys/rsget.pl/Link/Simple	Sun Jun 27 20:04:39 2010
@@ -13,6 +13,7 @@
 uri: qr{tinyurl\.com/}
 uri: qr{linkhider\.com/}
 uri: qr{to\./}
+uri: qr{anonym-to\.com/\?}
 slots: max
 status: OK 2010-06-04
 
@@ -25,7 +26,7 @@
 
 	my $link;
 	if ( $-{_referer} =~ m#^$serv# ) {
-		if ( m#<meta http-equiv="refresh" content="\d+;url='(.*?)'">#i ) {
+		if ( m#<meta http-equiv="refresh" content="\d+;\s*url='?(.*?)'?">#i ) {
 			$link = $1;
 		} elsif ( m#<i?frame\s+.*?src="(http://.*?)">#i ) {
 			$link = $1;


More information about the pld-cvs-commit mailing list