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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  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

    ...stumped at the moment of how else I should store this 'old formkey' that wont effect extra tabs. as always ideas are appreciated, thanks <?php /** * Formkey.php * * This class is intended to protect forms from xss * * Customized by: Bladeone_2k - August 2010 */ class formKey {...
  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

    ...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 entry */ function sqlPrep($string,$except=0,$forms=0) { if(get_magic_quotes_gpc()) { $string =...
  8. jasc2k

    php autolink input

    ...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 pair_tags($content) { /* Allowed tags */ $tags...
  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

    ...the link is never ended with a domian it means the <a> tag never gets closed and therefore links all text after it in the <div> lol The code: /* Provide HTML for normal links */ function _linkify($text){ $text = str_replace('\"', '"', $text)...
  16. jasc2k

    BitConverter with CType

    hi there, many thanks for your post it has proved very interesting - I had not seen any posts relative to this binary formatter. I have now fixed my issue or should I say worked around my issue as it turns out what I was trying to do was not exactly what I wanted anyway. hrmm hindsight lol...
  17. jasc2k

    BitConverter with CType

    hi there, thanks for your reply :) its my program directly receiving data from a TCP socket, however I was testing it by declaring a string that I knew would be correct. One thing I thought of recently that I have not tested is instead of declaring a string declaring it as an object then...
  18. jasc2k

    BitConverter with CType

    Hi all, I will try to keep this as simple as possible as the project is quite large. But quite simply we have a signature capture app that capture the coordinates of lines of a signature that posts them into an SQL column as 'image'. We then convert the contents using: recSign =...
  19. jasc2k

    Unix/Perl ASCII Carriage return

    Hi Miller, Thanks for your answer - I should have probably thought of that but it did lead me to the final answer being: chr(13).chr(10) Many many thanks, James http://www.myphaze.co.uk - free mp3 downloads and streaming
  20. jasc2k

    Unix/Perl ASCII Carriage return

    Hi all, I am having a small issue when sending data over a TCP socket. Basically I need to send a carraige return as an ASCII code at the end of our data (to signify the end of data stream). The ASCII code is Alt+13 but when typing this into our perl script it actually performs a carriage...

Part and Inventory Search

Back
Top