mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
wifi(fix): quote ssid and password for wpa_passphrase
This commit is contained in:
committed by
Frans de Jonge
parent
4eb8664c95
commit
bde2139b27
@@ -164,8 +164,9 @@ function ReaderDictionary:stardictLookup(word, box)
|
||||
results_str = A.stdout("./sdcv", "--utf8-input", "--utf8-output",
|
||||
"-nj", word, "--data-dir", dict_dir)
|
||||
else
|
||||
local std_out = io.popen("./sdcv --utf8-input --utf8-output -nj "
|
||||
.. ("%q"):format(word) .. " --data-dir " .. dict_dir, "r")
|
||||
local std_out = io.popen(
|
||||
("./sdcv --utf8-input --utf8-output -nj %q --data-dir %q"):format(word, dict_dir),
|
||||
"r")
|
||||
if std_out then
|
||||
results_str = std_out:read("*all")
|
||||
std_out:close()
|
||||
|
||||
Reference in New Issue
Block a user