From fd06a85c2d0683056d72118410d5ed4c0c379b4c Mon Sep 17 00:00:00 2001 From: Kak2X Date: Sat, 19 Jun 2021 03:08:35 +0200 Subject: [PATCH] Fix preg_replace de-addslashing error hmmmm --- editprofile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editprofile.php b/editprofile.php index 3b661ea..4ace254 100644 --- a/editprofile.php +++ b/editprofile.php @@ -214,6 +214,7 @@ $sex=2; $oldtitle = ""; + $title = stripslashes($title); while ($oldtitle != $title) { $oldtitle = $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 = addslashes($title); + $bio=preg_replace("'nload', $bio);