{
return configvalue;
}
- else // get Value from enigma2 settings file
+ else // get value from enigma2 settings file
{
FILE *f = fopen(configfile.c_str(), "r");
if (!f)
char line[1024];
if (!fgets(line, 1024, f))
break;
- filecontent += line;
+ std::string tmp = line;
+ std::string password;
+ int pwdpos = tmp.find(".password=", 0);
+ if( pwdpos != std::string::npos)
+ {
+ filecontent += tmp.substr(0,pwdpos +10);
+ for ( int pos = pwdpos +10; pos < tmp.length()-1; ++pos )
+ {
+ filecontent += "X";
+ }
+ filecontent += "\n";
+ }
+ else {
+ filecontent += line;
+ }
}
fclose(f);
}
#endif
fprintf(f, "\t\t<contactemail>%s</contactemail>\n", crash_emailaddr);
fprintf(f, "\t\t<!-- Please email this crashlog to above address -->\n");
+ std::string activeSkin = getConfigFileValue("config.skin.primary_skin");
+ if (activeSkin != "Error")
+ {
+ if (activeSkin == "")
+ activeSkin = "Default Skin";
+ fprintf(f, "\t\t<skin>%s</skin>\n", activeSkin.c_str());
+ }
fprintf(f, "\t</enigma2>\n");
fprintf(f, "\t<image>\n");
fprintf(f, "\t\t<kernelcmdline>%s</kernelcmdline>\n", kernelcmd);
}
std::string sendAnonCrashlog = getConfigFileValue("config.plugins.crashlogautosubmit.sendAnonCrashlog");
- if (sendAnonCrashlog == "False" || sendAnonCrashlog == "false" || sendAnonCrashlog == "") // defaults to false, so "" is also ok.
+ if (sendAnonCrashlog == "False" || sendAnonCrashlog == "false") // defaults to true... default anonymized crashlogs
{
std::string ca = getFileContent("/proc/stb/info/ca");
if (ca != "Error")