mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1653659 - Part 3: Only allow non-empty paths in RLBoxHunspell r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D114925
This commit is contained in:
parent
9e0841b081
commit
351efdd226
@ -52,8 +52,12 @@ RLBoxHunspell::RLBoxHunspell(const nsAutoCString& affpath,
|
||||
#endif
|
||||
|
||||
// Add the aff and dict files to allow list
|
||||
mozHunspellCallbacks::AllowFile(affpath);
|
||||
mozHunspellCallbacks::AllowFile(dpath);
|
||||
if (!affpath.IsEmpty()) {
|
||||
mozHunspellCallbacks::AllowFile(affpath);
|
||||
}
|
||||
if (!dpath.IsEmpty()) {
|
||||
mozHunspellCallbacks::AllowFile(dpath);
|
||||
}
|
||||
|
||||
// Register callbacks
|
||||
mCreateFilemgr =
|
||||
|
Loading…
x
Reference in New Issue
Block a user