Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jasc2k

  1. jasc2k

    nonce - unique single use number for for xss problem

    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...
  2. jasc2k

    nonce - unique single use number for for xss problem

    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...
  3. jasc2k

    nonce - unique single use number for for xss problem

    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...
  4. jasc2k

    php autolink input

    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
  5. jasc2k

    php autolink input

    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...
  6. jasc2k

    php autolink input

    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...
  7. jasc2k

    php autolink input

    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...
  8. jasc2k

    php autolink input

    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...
  9. jasc2k

    php autolink input

    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
  10. jasc2k

    allow only numerical values to be entered in a textbox

    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
  11. jasc2k

    php autolink input

    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...
  12. jasc2k

    php autolink input

    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...
  13. jasc2k

    php autolink input

    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 =...
  14. jasc2k

    php autolink input

    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
  15. jasc2k

    php autolink input

    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...

Part and Inventory Search

Back
Top