Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

HTML encoding issue

2»

Comments

  • Options
    x00x00 MVP
    edited November 2013

    yep my search and replace conversion of phpBB fixes.

                    $SearchRepl[':']=array("repl"=>':',"regexp"=>FALSE);
                    $SearchRepl['.']=array("repl"=>'.',"regexp"=>FALSE);
                    $SearchRepl['"']=array("repl"=>'"',"regexp"=>FALSE);
                    $SearchRepl['<[\-]+']=array("repl"=>'',"regexp"=>TRUE);
                    $SearchRepl['<!--\s+s([^\s]+)\s+-->\s*<img[^>]+>\s*<!--\s+s[^\s]+\s+-->'] =array("repl"=>'\\1',"regexp"=>TRUE);
                    $SearchRepl['&lt;!--\s+s([^\s]+)\s+--&gt;\s*&lt;img[^&]+&gt;\s*&lt;!--\s+s[^\s]+\s+--&gt;'] =array("repl"=>'\\1',"regexp"=>TRUE);
                    $SearchRepl['/?viewtopic\.php([a-z\d=&\?]*?)([&\?](p|post)=(\d+))([a-z\d=&\?]*)'] =array("repl"=>'/discussion/comment/\\4/', "regexp"=>TRUE);
                    $SearchRepl['/?viewtopic\.php([a-z\d=&\?]*?)([&\?](t|topic)=(\d+))([a-z\d=&\?]*)'] =array("repl"=>'/discussion/\\4/x/p1/', "regexp"=>TRUE);
                    $SearchRepl['/?viewforum\.php([a-z\d=&\?]*?)([&\?](f|forum)=(\d+))([a-z\d=&\?]*)'] =array("repl"=>'/categories/\\4/', "regexp"=>TRUE);
    

    In other words it is converting some weird artefacts but not all html tags, becuase it is expecting html tags to be the exception the the rule.

    grep is your friend.

  • Options
    meshugymeshugy Musician/Hacker ✭✭

    Thanks guys, I'll give these methods a try. Once I get this HTML issue fixed, I'll be ready to go live with my new Vanilla forum! I appreciate all the help....

    Michael

Sign In or Register to comment.