Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Acme::Addslashes 0.1.3

    Download button

    No screenshots available
    Downloads: 57  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    James Aitken | More programs
    Perl Artistic License / FREE
    September 20th, 2012, 05:21 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Acme::Addslashes description

    addslashes port for Perl

    Acme::Addslashes is a Perl module that provides a port of addslashes, the most useful PHP function ever.

    Usage

     use Acme::Addslashes qw(addslashes);

     my $unsafe_string = "Robert'); DROP TABLE Students;--";
     
     my $totally_safe_string = addslashes($unsafe_string);

     # $totally_safe_string now contains:
     # R̸o̸b̸e̸r̸t̸'̸)̸;̸ ̸D̸R̸O̸P̸ ̸T̸A̸B̸L̸E̸ ̸S̸t̸u̸d̸e̸n̸t̸s̸;̸-̸-̸

     # If that's not enough slashes to be safe, I don't know what is



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    addslashes port | PHP function | Perl module | Perl | addslashes | port

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM