Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Backslashes by Apostrophes in Profile Comments Issue Tools
issueid=51 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
Project The Bug Tracker
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?
Reply
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}"
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 06:48 PM.

Currently Active Users: 371 (0 members and 371 guests)
Threads: 4,035, Posts: 31,786, Members: 15,694
Welcome to our newest members, rome002.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636