🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 21:45:15 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
plugins
/
blocksy-companion
/
static
/
js
/
options
📍 /home/eliteewa/public_html/wp-content/plugins/blocksy-companion/static/js/options
🔄 Refresh
✏️
Editing: utils.js
Writable
import phpUnserialize from 'phpunserialize' const utf8ByteLength = (value) => { if (typeof TextEncoder !== 'undefined') { return new TextEncoder().encode(value).length } // Fallback for very old environments return unescape(encodeURIComponent(value)).length } export const safePhpUnserialize = (data) => { const fixed = data.replace( /s:(\d+):"((?:\\.|[^"\\])*)";/g, (_, len, str) => { // If multiline, skip length correction to avoid breaking structure if (str.includes('\n')) return `s:${len}:"${str}";` const actualLength = utf8ByteLength(str) return `s:${actualLength}:"${str}";` } ) return phpUnserialize(fixed) }
💾 Save Changes
❌ Cancel