Changeset 111
- Timestamp:
- 12.12.2006 00:10:58 (2 years ago)
- Files:
-
- trunk/devel/FuzzyOcr.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/devel/FuzzyOcr.pm
r110 r111 258 258 #Generete unique filename to store image 259 259 my $imgfilename = Mail::SpamAssassin::Util::untaint_file_path( 260 $imgdir . "/" . $f name260 $imgdir . "/" . $filename 261 261 ); 262 262 my $unique = 0; 263 263 while (-e $imgfilename) { 264 264 $imgfilename = Mail::SpamAssassin::Util::untaint_file_path( 265 $imgdir . "/" . chr(65+$unique) . "." . $f name265 $imgdir . "/" . chr(65+$unique) . "." . $filename 266 266 ); 267 267 $unique++; 268 268 } 269 270 #Translate spaces to underscores, otherwise will break $input later on.271 $imgfilename =~ s/ /_/g;272 269 273 270 #Save important constants
