Blob Blame History Raw
--- src/filesystem.cpp~	2015-04-08 16:31:54.000000000 -0500
+++ src/filesystem.cpp	2015-06-26 07:45:00.794447377 -0500
@@ -1025,6 +1025,11 @@
 		return result;
 	}
 
+	if (ends_with(filename, ".pbl")) {
+		ERR_FS << "Illegal path '" << filename << "' (.pbl files are not allowed)." << std::endl;
+		return result;
+	}
+
 	bool already_found = false;
 
 	if (filename[0] == '~')
--- src/filesystem_boost.cpp~	2015-04-08 16:31:54.000000000 -0500
+++ src/filesystem_boost.cpp	2015-06-26 07:46:38.036445208 -0500
@@ -976,6 +976,11 @@
 		return false;
 	}
 
+	if (ends_with(filename, ".pbl")) {
+		ERR_FS << "Illegal path '" << filename << "' (.pbl files are not allowed)." << std::endl;
+		return false;
+	}
+
 	return true;
 }