We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7cfbe9 commit e619483Copy full SHA for e619483
1 file changed
js/search.js
@@ -28,6 +28,13 @@ const initPHPSearch = async (language) => {
28
29
const expireDate = cachedDate + CACHE_DAYS * MILLISECONDS_PER_DAY;
30
31
+ // Reject old format indexes
32
+ if (
33
+ (typeof data[0] !== 'object')
34
+ || Array.isArray(data[0])
35
+ ) {
36
+ return null;
37
+ }
38
if (Date.now() > expireDate) {
39
return null;
40
}
0 commit comments