ソースを参照

gluon-core: convert site seed to lowercase

While we use the hexadecimal representation as a hash input for simplicity,
it should not be interpreted as case-sensitive.
Matthias Schiffer 7 年 前
コミット
ae593d8439
1 ファイル変更1 行追加1 行削除
  1. 1 1
      package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua

+ 1 - 1
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua

@@ -131,7 +131,7 @@ function site_seed_bytes(key, length)
 	-- cryptographic strength
 	while ret:len() < 2*length do
 		i = i + 1
-		v = hash.md5(v .. key .. site.site_seed .. i)
+		v = hash.md5(v .. key .. site.site_seed:lower() .. i)
 		ret = ret .. v
 	end