Просмотр исходного кода

Encode titles in NZB URLs. Spaces are allowed after the #, but it makes shell scripts more complicated

Zachary Kotlarek 9 лет назад
Родитель
Сommit
c23691b5d3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -1328,7 +1328,7 @@ sub parseNZB($) {
 		$title = $item->{'description'};
 	}
 	if ($title) {
-		$url .= '#' . $title;
+		$url .= '#' . uri_encode($title);
 	}
 
 	# Extract the season and episode numbers