Skip to content
Snippets Groups Projects
Commit 0fbc4e66 authored by rswindell's avatar rswindell
Browse files

Extra protection against base64 decode failure.

parent 70423f5f
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,10 @@ function bbs_preview(num, bbs)
**/
// log(LOG_DEBUG,bbs.preview.join("\r\n"));
var graphic=new Graphic();
graphic.BIN = lib.decode_preview(bbs.preview);
var bin = lib.decode_preview(bbs.preview);
if(!bin || !bin.length)
return false;
graphic.BIN = bin;
write('<pre title="Click to Zoom-In" onclick="onClick(this)">'); // onmouseout="this.className=\'zoomOut\'">');
var html = graphic.HTML;
/* HTML Optimization: */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment