mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 00:30:21 -07:00
Merge pull request #75 from Kak2X/patch-2
Fix preg_replace de-addslashing error
This commit is contained in:
commit
1d83af0438
@ -214,6 +214,7 @@
|
|||||||
$sex=2;
|
$sex=2;
|
||||||
|
|
||||||
$oldtitle = "";
|
$oldtitle = "";
|
||||||
|
$title = stripslashes($title);
|
||||||
while ($oldtitle != $title) {
|
while ($oldtitle != $title) {
|
||||||
$oldtitle = $title;
|
$oldtitle = $title;
|
||||||
$title=preg_replace("'<(b|i|u|s|small|br)>'si", '[\\1]', $title);
|
$title=preg_replace("'<(b|i|u|s|small|br)>'si", '[\\1]', $title);
|
||||||
@ -231,6 +232,8 @@
|
|||||||
$title=preg_replace("'(face|style|class|size|id)=\'([^ ].*?)\''si", '', $title);
|
$title=preg_replace("'(face|style|class|size|id)=\'([^ ].*?)\''si", '', $title);
|
||||||
$title=preg_replace("'(face|style|class|size|id)=([^ ].*?)'si", '', $title);
|
$title=preg_replace("'(face|style|class|size|id)=([^ ].*?)'si", '', $title);
|
||||||
}
|
}
|
||||||
|
$title = addslashes($title);
|
||||||
|
|
||||||
$bio=preg_replace("'<iframe'si", '<iframe', $bio);
|
$bio=preg_replace("'<iframe'si", '<iframe', $bio);
|
||||||
$bio=preg_replace("'<script'si", '<script', $bio);
|
$bio=preg_replace("'<script'si", '<script', $bio);
|
||||||
$bio=preg_replace("'onload'si", 'o<z>nload', $bio);
|
$bio=preg_replace("'onload'si", 'o<z>nload', $bio);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user