apologies for the delay, what a week this has been, looking forward to the weekend.
thanks very much for the demo code made an interesting read.
I am nearly finished implementing the new class just trying to test all my different form scenarios.
lol mission, but so far looking good!
many thanks...
wow as always many thanks for your reply
that is an awsome example of a nonce class and usage and even does nonce via URL ace!!
yes I have this issue I have several forms on each page i.e a comment form and a search form will this code work in this scenario, and across multiple tabs? lol
also...
hi all, back again I love this forum, lol
below is a simple php class that generates a unique number thats included on all of my forms to prevent xss. admitadly the class was not originally mine just improved and customized a little.
anyways the problem is simple - in my __construct function...
agreed lol
that looks intense - I could add some jQuery onto this but I love your code for this
though I dont fully understand all of it, it seems really thorough
thanks
http://www.myphaze.co.uk - free mp3 downloads and streaming
ahh simple fixes - I like
$message = str_replace('<', ' <', $message);
I have applied this to all opening tags - I beleive that syntax is fine
whats this? any links?
Many thanks for your help - I have looked at this so many different times I got bored. This simple fix seems to be working...
it feels like i am going around in circles on this one. so I am now back to the autolink function
input:
www.test.com/openend
carriage return immediatly after link
inside sql:
<a rel="nofollow" href="http://www.test.com/openendbr" target="_blank">www.test.com/openend carriage return immediatly...
how embarrissing i have tested and tested and tested and it is not an issue with any code I have posted maybe I will start a new thread.
I further noticed after removing all code there is only one function left and I can already see this could definately be the issue:
/* Prepares data for SQL...
ok my bad I hope your still checking this jpadie just further down in my code I call the following function I have just tested it further and beleive this issue lies in here:
/**
* pair_tags - this function will close
* any HTML tags left open (at end of post)
*/
function...
infact anything incased in < > crocodiles gets removed which is good to stop users typing html formatted links but wheres it do it in the code lol
http://www.myphaze.co.uk - free mp3 downloads and streaming
Agreed javascript is the only way as its a client side language.
The link below shows a nice snippet with usage using keyboard mapping:
http://www.go4expert.com/forums/showthread.php?t=2359
http://www.myphaze.co.uk - free mp3 downloads and streaming
you may login to my site using testing (both u and p) and test all you like
lol you can ignore the 3 br's in a row code that never quite worked - I cant really see the whole issue for the life of me, I can see where it might remove the first < crocodile but not the closing one
thanks...
this is what I have retrieved from my sql database:
<a rel="nofollow" href="http://www.myphaze.co.uk/bugsbr" target="_blank">www.myphaze.co.uk/bugsbr bug hunting
Looks like the br loses its <>
should be:
www.myphaze.co.uk/bugs
bug hunting
interesting...
http://www.myphaze.co.uk - free mp3...
this is the code used to call the funtion (I am posting because it may be relavant)
/* Formatting for HTML entries */
$message = htmlspecialchars($message, ENT_NOQUOTES);
/* Add line breaks with max of 3 in a row */
//$message = preg_replace('/\r/', '', $message);
//$message =...
my apologies but I meant that a carraige return <br /> after the link causes the problem
thanks
http://www.myphaze.co.uk - free mp3 downloads and streaming
thread434-1618095
A revived thread of a great text autolinking script by jpaide.
It supports many domains / emails and youtube links.
Now to the reason for reposting:
A recent craze of links posted on my site like www.myphaze.co.uk/profile/testing are causing problems facebook and twitter...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.