[img] Tag BugFix 1.1 for SP1-SP1.3.2 This is a bugfix for YaBB SP1/1.1/1.2/1.3/1.3.1/1.3.2 It solves a problem in the [img] tag which is causing images ending with "n", "b", "s" and "p" to no longer function. Since v1.1, this mod also allows images with https:// Version History: v1.1: images with https:// are displayed properly now. v1.0: fixed images ending with n,b,s and p. Michael Prager http://www.boardmod.org Sources/YaBBC.pl $message =~ s~\[img\][\s*\t*\n*( )*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*( )*($char_160)*]*\[/img\]~~isg; $message =~ s~\[img width=(\d+) height=(\d+)\][\s*\t*\n*( )*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*( )*($char_160)*]*\[/img\]~restrictimage($1,$2,'http://'.$4)~eisg; $message =~ s~\[img\](?:\s|\t|\n| |$char_160)*(?:http(s)?\:\/\/)*(.+?)(?:\s|\t|\n| |$char_160)*\[/img\]~~isg; $message =~ s~\[img width=(\d+) height=(\d+)\](?:\s|\t|\n| |$char_160)*(?:http(s)?\:\/\/)*(.+?)(?:\s|\t|\n| |$char_160)*\[/img\]~restrictimage($1,$2,"http$3://$4")~eisg; Sources/Printpage.pl $threadpost =~ s~\[img\][\s*\t*\n*( )*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*( )*($char_160)*]*\[/img\]~http://$2~isg; $threadpost =~ s~\[img width=(\d+) height=(\d+)\][\s*\t*\n*( )*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*( )*($char_160)*]*\[/img\]~http://$4~isg; $threadpost =~ s~\[img\](?:\s|\t|\n| |$char_160)*(?:http(s)?\:\/\/)*(.+?)(?:\s|\t|\n| |$char_160)*\[/img\]~http$1://$2~isg; $threadpost =~ s~\[img width=(\d+) height=(\d+)\](?:\s|\t|\n| |$char_160)*(?:http(s)?\:\/\/)*(.+?)(?:\s|\t|\n| |$char_160)*\[/img\]~http$3://$4~isg;