- Posts: 5
- Thank you received: 0
OS Property support center
BUG: Adding Backslashes When Saved - SOLVED
- swiftmedia
- Topic Author
- Offline
- New Member
-
Less
More
12 years 6 months ago - 12 years 6 months ago #19636
by swiftmedia
BUG: Adding Backslashes When Saved - SOLVED was created 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!!!
Backslashes are added to escape single quotes when a property is saved.
I would like to remove the backslashes.
Any help?
Thanks!!!
Attachments:
Last edit: 12 years 6 months ago by Mr. Dam.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 6 months 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
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.
- Sky
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
12 years 6 months ago - 12 years 6 months 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.
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: 12 years 6 months ago by Sky.
Please Log in or Create an account to join the conversation.
- swiftmedia
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
12 years 6 months ago #19666
by swiftmedia
Replied by swiftmedia on topic Re: BUG: Adding Backslashes When Saved
Awesome!
Thank you, damdt!
Take care!
Thank you, damdt!
Take care!

Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.