Browse files

Item12367: preserve name encoding symmetry in uploads in cached requests

Since the filename for a cached upload is based on the URL-encoded version of
the original filename, we need to use the URL-encoded version when applying
the cached upload, too.

Original Author: JanKrueger <JanKrueger@0b4bb1d4-4e5a-0410-9cc4-b2b747904278>

git-svn-id: 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
GeorgeClark GeorgeClark
GeorgeClark authored and GeorgeClark committed Jan 25, 2013
1 parent 8c8cb86 commit 4b2a57ad472587a3d98ef8238686cb02888841d4
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/lib/Foswiki/Request/
@@ -155,10 +155,10 @@ sub load {
# Load uploads
while ( my $key = <$F> ) {
$key =
Foswiki::urlDecode( Foswiki::Sandbox::untaintUnchecked($key) );
print STDERR "CACHE $uid< upload $key\n" if (TRACE_CACHE);
$req->{uploads}->{$key} =
$key = Foswiki::Sandbox::untaintUnchecked($key);
my $decodedKey = Foswiki::urlDecode($key);
print STDERR "CACHE $uid< upload $decodedKey\n" if (TRACE_CACHE);
$req->{uploads}->{$decodedKey} =
$this->_loadUpload( $this->_cacheFile($uid), $key );

0 comments on commit 4b2a57a

Please sign in to comment.