PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 05-17-2005, 06:45 PM   #1
scarydog
Former Member
 
Join Date: Mar 2005
Posts: 1
related problem

Hi there,

we use a script to encode email addresses i.e auckland@ajpark.com -->& #97;& #117;& #99;& #107;& #108;& #97;& #110;& #100;& #64;& #97;& #106;& #112;& #97;& #114;& #107;& #46;& #99;& #111;& #109;

This is at the request of our client so that the email addresses are not so easily harvested. It would be great if there was some way of keeping these encoded in the results, as our client is complaining about see the ;&#106 etc

Is there anyway to make this happen?

Last edited by scarydog; 05-17-2005 at 06:49 PM.
scarydog is offline   Reply With Quote
Old 05-19-2005, 08:28 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
In search_function.php find where the PHP htmlspecialchars function is used on $title, $table_results, and $extract, and then wrap the htmlspecialchars function with something like the following:
Code:
$foo = str_replace("&","&",htmlspecialchars($foo,ENT_QUOTES));
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese characters and html fragments in results cranachan Troubleshooting 4 01-16-2006 12:27 PM
Phpdig indexing including HTML in results Mrsoft Troubleshooting 1 09-28-2004 05:23 AM
Creating a .php Template Instead of .html Destroyer X How-to Forum 25 07-29-2004 10:53 PM
index only HTML files bigals Troubleshooting 17 12-02-2003 04:21 AM
Indexing all HTML-Comments Rolandks Bug Tracker 4 10-04-2003 07:38 AM


All times are GMT -8. The time now is 11:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.