Mysidia Adoptables Support Forum  

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

Notices

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
01-04-2021 09:57 PM
Loving Mysidia!
 
Thank you very much!
Reply
Reply

All times are GMT -5. The time now is 11:42 AM.

Currently Active Users: 734 (0 members and 734 guests)
Threads: 4,081, Posts: 32,031, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


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