mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-29 10:40:35 +02:00
slashes are replaced with %'s when writing log files
This commit is contained in:
parent
4561ce88e6
commit
0d6b3b00c3
|
@ -34,7 +34,9 @@ module.exports.write = function(user, network, chan, msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.appendFile(
|
fs.appendFile(
|
||||||
path + "/" + chan + ".log",
|
// Quick fix to escape pre-escape channel names that contain % using %%,
|
||||||
|
// and / using %. **This does not escape all reserved words**
|
||||||
|
path + "/" + chan.replace(/%/g, "%%").replace(/\//g, "%") + ".log",
|
||||||
line + "\n",
|
line + "\n",
|
||||||
function(e) {
|
function(e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
|
|
Loading…
Reference in a new issue