Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

BUG: Adding Backslashes When Saved - SOLVED

  • swiftmedia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 weeks ago - 14 years 2 weeks ago #19636 by swiftmedia
:huh:

Backslashes are added to escape single quotes when a property is saved.

I would like to remove the backslashes.

Any help?


Thanks!!!
Last edit: 14 years 2 weeks ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
14 years 2 weeks ago #19644 by Mr. Dam
Replied by Mr. Dam on topic Re: BUG: Adding Backslashes When Saved
Hi,
To remove backslashes in the small description of the properties in the backend, please do following steps.
Open file
administrator > components > com_osproperty > classes > property.html.php

Find
<textarea name="pro_small_desc" id="pro_small_desc" cols="50" rows="5" class="inputbox"><?php echo $row->pro_small_desc?></textarea><span class="required">(*)</span>
and replace by
<textarea name="pro_small_desc" id="pro_small_desc" cols="50" rows="5" class="inputbox"><?php echo stripslashes($row->pro_small_desc)?></textarea><span class="required">(*)</span>

Save -> done

Good luck
Dam
The following user(s) said Thank You: swiftmedia

Please Log in or Create an account to join the conversation.

More
14 years 2 weeks ago - 14 years 2 weeks ago #19664 by Sky
Replied by Sky on topic Re: BUG: Adding Backslashes When Saved
If im not mistaking, it is security measure so DB cant be hacked... Especially if you have some ppl who can add/edit property.
But as i know, i need to remove it my self also, since there is only 2 ppl doing this, w/o possibility of registration on site.
Last edit: 14 years 2 weeks ago by Sky.

Please Log in or Create an account to join the conversation.

  • swiftmedia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 weeks ago #19666 by swiftmedia
Replied by swiftmedia on topic Re: BUG: Adding Backslashes When Saved
Awesome!

Thank you, damdt!


Take care!

B)

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam, Nguyen Phu Quan