Getting rid of those backslashes

A mod witch will add a new links page to your froum.
fully ACP insterface, from where you may add/delete and update link categorys/sub categorys and links.

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Getting rid of those backslashes

Postby Anakha on Mon 21. Jun, 2004 12:36

I noticed that when editing and then saving a link with special characters (<, >, ', ", \ etc) slashes would be added, but not removed when viewing. So slashes would be added saving, to escape the slashes etc, etc.

I modified admin_links.php (version 0.9.5) to strip the slashes when showing/editing. Should work with 0.9.6 also.


Code: Select all
#
#--[ FIND ]------------------------------------------
#

'LINK_NAME' => $link_info['link_name'],

#
#--[ REPLACE WITH ]------------------------------------------
#

'LINK_NAME' => stripslashes($link_info['link_name']), /* MOD added stripslashes() here */

#
#--[ FIND ]------------------------------------------
#

'CAT_NAME' => $link['link_name'],

#
#--[ REPLACE WITH ]------------------------------------------
#

'CAT_NAME' => stripslashes($link['link_name']), /* MOD added stripslashes() here */

#
#--[ FIND ]------------------------------------------
#

'SUB_NAME' =>$link['link_name'],

#
#--[ REPLACE WITH ]------------------------------------------
#

'SUB_NAME' => stripslashes($link['link_name']), /* MOD added stripslashes() here */

#
#--[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

Anakha
Poster
Poster
 
Posts: 4
Joined: Thu 06. May, 2004 21:32
Location: Netherlands

Postby Bien on Sun 10. Oct, 2004 12:28

Hi,

It's a shame cause it doesno't work here! :cry:

Bien
Bien
Poster
Poster
 
Posts: 4
Joined: Sun 26. Sep, 2004 20:06
Location: The Netherlands

Postby Anakha on Sun 10. Oct, 2004 13:41

what seems to be the problem? does something happen or not?
Anakha
Poster
Poster
 
Posts: 4
Joined: Thu 06. May, 2004 21:32
Location: Netherlands

Postby Bien on Sun 10. Oct, 2004 14:36

Hi,

I still get slashes when I use 'these' for example :oops:
I thought ok it isn't possible, but meaby it is..........

Bien
Bien
Poster
Poster
 
Posts: 4
Joined: Sun 26. Sep, 2004 20:06
Location: The Netherlands


Return to Links [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron