• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Title error phpvibe : Strip_tags

Started by MacKen,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


MacKenTopic starter

Quote from: MacKen on
http://www.videoscriptdemo.com/video/7358/-lt-p-style-quot-text-align-center-quot-gt-paragraph-lt-p-gt-lt-strong-gt-bold-lt-strong-gt-lt-br-gt-lt-span-style-quot-color-red-quot-gt-red-lt-span-gt-lt-h1-gt-header-lt-h1-gt-lt-script-type-quot-text-javascript-quot-src-quot-zend-mvc-public-templates-webadmin-system-js-ddacc/


Demo:




Error file fuctions_html.php

function antixss_light($text) {
//Remove external scripts
$search = array(
    '@<script[^>]*?>.*?</script>@si',   // Strip out javascript
    '@<[\/\!]*?[^<>]*?>@si',       // Strip out HTML tags
    '@<style[^>]*?>.*?</style>@siU',    // Strip style tags properly
    '@<![\s\S]*?--[ \t\n\r]*>@'         // Strip multi-line comments
  );
$tx_output = preg_replace($search, '', $text);
//Deep remove the rest
$injections = array('<script','iframe','<object','applet','<embed','onblur','onchange','onclick','ondblclick','onfocus','onkeydown','onkeypress','onkeyup','onload','onmousedown','onmousemove','onmouseout','onmouseover','onmouseup','onreset','onselect','onsubmit','onunload', '<src', 'document.body.innerHTML', 'document.body', 'document.title','<!--','innerHTML');
$output  = strip_tags($tx_output, '<ul><ol><li><em><pre><code><blockquote><cite><br><b><strong><p><i>');
$output  = str_replace($injections, '', $tx_output);
return $output;
}


Not support
  •  

MacKenTopic starter

Re: Title, Descriptions,Content,Comment  >>>>> error phpvibe : Strip_tags
  •  

 

Similar topics (7)

The PHPVibe Archive is now public

Started by Marius P.


Replies: 0
Views: 13468

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 32535

How to use the PHPVibe user system (internally or externally)

Started by PHPVibe A.


Replies: 0
Views: 6584

New PHPVIBE 5 (Beta testing DISCUSSION)

Started by yafe3


Replies: 31
Views: 8025

New PHPVibe v5 Issues and Discussions

Started by DeadFish


Replies: 1
Views: 3430

The problem of text chatting PHPVibe 5.0.

Started by Nayn


Replies: 4
Views: 1983

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 42240