Backslashes by Apostrophes in Profile Comments
|
01-16-2015 12:03 PM
|
|
Premium Member
|
|
Backslashes by Apostrophes in Profile Comments
Apostrophes are always lead by a \, presumably for security reasons.
The slashes can be removed before display by going into class_messagetablehelper.php and changing this line in function getVisitorMessage:
PHP Code:
$vmField->add(new Comment($vmessage->vmtext));
To:
PHP Code:
$msg = stripslashes($vmessage->vmtext);
$vmField->add(new Comment($msg));
|
|
Issue Details
|
Category Unknown
Status Unconfirmed
Priority 8
Affected Version Mys v1.3.4
Fixed Version (none)
Users able to reproduce bug
0
Users unable to reproduce bug
0
Assigned Users
(none)
Tags
(none)
|
|
11-13-2020 08:10 PM
|
|
Loving Mysidia!
|
|
|
Do you have a fix for the slashes in bios?
|
11-28-2020 02:49 PM
|
|
Premium Member
|
|
|
I already responded elsewhere, but to be clear, yes this does also effect profile bios, so--
Inside class_userprofile.php, around line 123, replace this:
PHP Code:
$basicinfo = "<br><strong>Member Since:</strong> {$membersince}<br>
Gender: {$this->gender}<br>
Favorite Color: {$this->color}<br>
Nickname: {$this->nickname}<br>
Bio: {$this->bio}";
With this:
PHP Code:
$str_bio = stripslashes($this->bio);
$basicinfo = "<br><strong>Member Since:</strong> {$membersince}<br>
Gender: {$this->gender}<br>
Favorite Color: {$this->color}<br>
Nickname: {$this->nickname}<br>
Bio: {$str_bio}";
|
01-04-2021 09:57 PM
|
|
Loving Mysidia!
|
|
|
Thank you very much!
|
All times are GMT -5. The time now is 09:22 AM.
Currently Active Users: 635 (0 members and 635 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members,
jolob.