From: <ms...@us...> - 2009-03-19 14:35:02
|
Revision: 9068 http://wonder.svn.sourceforge.net/wonder/?rev=9068&view=rev Author: mschrag Date: 2009-03-19 14:35:00 +0000 (Thu, 19 Mar 2009) Log Message: ----------- WONDER-207 ERCaptcha can produce inapropriate if using ERCaptchaEngine Modified Paths: -------------- trunk/Wonder/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptchaEngine.java Modified: trunk/Wonder/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptchaEngine.java =================================================================== --- trunk/Wonder/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptchaEngine.java 2009-03-19 14:27:21 UTC (rev 9067) +++ trunk/Wonder/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptchaEngine.java 2009-03-19 14:35:00 UTC (rev 9068) @@ -16,8 +16,7 @@ import com.octo.captcha.component.image.textpaster.textdecorator.TextDecorator; import com.octo.captcha.component.image.wordtoimage.DeformedComposedWordToImage; import com.octo.captcha.component.image.wordtoimage.WordToImage; -import com.octo.captcha.component.word.FileDictionary; -import com.octo.captcha.component.word.wordgenerator.ComposeDictionaryWordGenerator; +import com.octo.captcha.component.word.wordgenerator.RandomWordGenerator; import com.octo.captcha.component.word.wordgenerator.WordGenerator; import com.octo.captcha.engine.image.ListImageCaptchaEngine; import com.octo.captcha.image.gimpy.GimpyFactory; @@ -49,7 +48,7 @@ ImageDeformation postDef = new ImageDeformationByFilters(new ImageFilter[] { water }); WordToImage word2image = new DeformedComposedWordToImage(shearedFont, back, randomPaster, backDef, textDef, postDef); - WordGenerator dictionaryWords = new ComposeDictionaryWordGenerator(new FileDictionary("toddlist")); + WordGenerator dictionaryWords = new RandomWordGenerator("BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz2346789"); addFactory(new GimpyFactory(dictionaryWords, word2image)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |