Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

6.01.12 Minor bug - maincore.php

CodeDownload  
//maincore.php Line 353:
//   $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<img src=\"\\1".str_replace(array('.php','?','&','='),'','\\3').'\\4\" style=\"border:0px\" />'",$text);
//should be:
     $text = preg_replace('#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie','<img src=\"\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4\" style=\"border:0px\" />',$text);



Or else, the parathesis until the end of first "array" function aren't closed and the preg won't work well.

Keep up the fine work.
Thread Information
Author
Replies
1 post
Views
1293 times
Last Post
Last updated on 12 years ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.