From 63e3daa1dc1ff941d9532e3e43c6c038f08857b4 Mon Sep 17 00:00:00 2001 From: dpavlin Date: Fri, 26 Aug 2005 21:43:01 +0000 Subject: [PATCH] fix restore url escaping git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@78 8392b6e1-25fa-0310-8288-cc32f8e212ea --- BUGS | 2 +- lib/BackupPC/SearchLib.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUGS b/BUGS index 2c3ba63..e27efe6 100644 --- a/BUGS +++ b/BUGS @@ -1,6 +1,6 @@ - fix URL in pager not to use JavaScript - share isn't transfered within pager -- plus (+) in filenames isn't escaped when creating restore link ++ plus (+) in filenames isn't escaped when creating restore link + sort share-ova u drop-downu + fixed found_in_db - custom logo diff --git a/lib/BackupPC/SearchLib.pm b/lib/BackupPC/SearchLib.pm index 651a107..5cc6b3d 100644 --- a/lib/BackupPC/SearchLib.pm +++ b/lib/BackupPC/SearchLib.pm @@ -353,7 +353,7 @@ sub displayGrid($$$$) { $file->{'sharename'}, qq{ } . hilite_html( $file->{'fpath'}, $hilite ), $typeStr, - restore_link( $typeStr, $file->{'hname'}, $file->{'backupno'}, $file->{'sname'}, $file->{'fpath'}, $file->{'backupno'} ), + restore_link( $typeStr, ${EscURI( $file->{'hname'} )}, $file->{'backupno'}, ${EscURI( $file->{'sname'})}, ${EscURI( $file->{'fpath'} )}, $file->{'backupno'} ), $file->{'size'}, epoch_to_iso( $file->{'date'} ), $file->{'dvd'} -- 2.20.1