mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-07-31 12:12:01 -07:00
"Fixing" issue #1 (Javascript injection)
This commit is contained in:
@@ -1035,13 +1035,6 @@ function dofilters($p){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$p=preg_replace("'document.cookie'si",'document.co<z>okie',$p);
|
|
||||||
$p=preg_replace("'eval'si",'eva<z>l',$p);
|
|
||||||
// $p=preg_replace("'document.'si",'docufail.',$p);
|
|
||||||
$p=preg_replace("'<script'si",'<<z>script',$p);
|
|
||||||
$p=preg_replace("'javascript:'si",'javasc<z>ript:',$p);
|
|
||||||
$p=preg_replace("'<iframe'si",'<<z>iframe',$p);
|
|
||||||
$p=preg_replace("'<meta'si",'<<z>meta',$p);
|
|
||||||
//$p=preg_replace("'<object(.*?)</object>'si","",$p);
|
//$p=preg_replace("'<object(.*?)</object>'si","",$p);
|
||||||
$p=preg_replace("'autoplay'si",'',$p); // kills autoplay, need to think of a solution for embeds.
|
$p=preg_replace("'autoplay'si",'',$p); // kills autoplay, need to think of a solution for embeds.
|
||||||
$p=preg_replace("'filter:alpha'si",'falpha',$p);
|
$p=preg_replace("'filter:alpha'si",'falpha',$p);
|
||||||
@@ -1085,8 +1078,17 @@ function dofilters($p){
|
|||||||
// $p=preg_replace("'<style'si",'<style',$p);
|
// $p=preg_replace("'<style'si",'<style',$p);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$p=preg_replace("'%BZZZ%'si",'onclick="bzzz(',$p);
|
$p=preg_replace("'%BZZZ%'si",'onclick="bzzz(',$p);
|
||||||
|
|
||||||
|
$p=preg_replace("'document.cookie'si",'document.co<z>okie',$p);
|
||||||
|
$p=preg_replace("'eval'si",'eva<z>l',$p);
|
||||||
|
// $p=preg_replace("'document.'si",'docufail.',$p);
|
||||||
|
$p=preg_replace("'<script'si",'<<z>script',$p);
|
||||||
|
$p=preg_replace("'javascript:'si",'javasc<z>ript:',$p);
|
||||||
|
$p=preg_replace("'<iframe'si",'<<z>iframe',$p);
|
||||||
|
$p=preg_replace("'<meta'si",'<<z>meta',$p);
|
||||||
|
|
||||||
return $p;
|
return $p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user