1 parent
c54acd2e36
commit
79addd4aba
14 files changed
+831
-2
No files matched your search
@@ -670,7 +670,7 @@ fn read_file_tail(path: &Path, max_bytes: u64) -> crate::Result<String> {
|
||||
Ok(output)
|
||||
}
|
||||
|
||||
async fn censor_support_text(
|
||||
pub(crate) async fn censor_support_text(
|
||||
mut text: String,
|
||||
state: &State,
|
||||
) -> crate::Result<String> {
|
||||
|
||||
@@ -41,3 +41,12 @@ pub use runner::{
|
||||
retry_job, retry_job_as_new, skip_missing_content_and_resume_job,
|
||||
update_managed_curseforge_modpack, upgrade_unmanaged_instance,
|
||||
};
|
||||
|
||||
/// Replaces credentials and IP addresses in text the user may share publicly
|
||||
/// (support reports, exported logs) with placeholders.
|
||||
pub async fn censor_shared_text(
|
||||
text: String,
|
||||
state: &crate::State,
|
||||
) -> crate::Result<String> {
|
||||
diagnostics::censor_support_text(text, state).await
|
||||
}
|
||||
Reference in new issue
Block a user