changeset 28:ff684484b12a draft

Fix untainting target.
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 03 Apr 2012 15:05:48 +0900
parents 96eb1aea0517
children e7a01e561e28
files after5.rb
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Tue Apr 03 15:03:18 2012 +0900
+++ b/after5.rb	Tue Apr 03 15:05:48 2012 +0900
@@ -5,7 +5,7 @@
 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $
 # $HGid$
-# Last modified Tue Apr  3 15:02:20 2012 on firestorm
+# Last modified Tue Apr  3 15:05:07 2012 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 
@@ -1440,10 +1440,10 @@
       string.split('').each{|c|
 	cpy << c[0].chr if c[0] != ?`  # `
       }
-      cpy
+      cpy.untaint
     else
       string
-    end.untaint
+    end
   end
   def checkmail(mail)
     account, domain = mail.scan(/(.*)@(.*)/)[0]

yatex.org