search for: addslash

Displaying 6 results from an estimated 6 matches for "addslash".

Did you mean: add_last
2008 Jan 16
3
is there something like addslashes and stripslashes in prototype
...the content of a textarea into mysql i eventually have to mask things like ,"/\ and so on. in php there are the add- and stripslashes functions you could use. is there somthing compareable like this in the string object of prototype? if not, it would very nice to have, i think. function addslashes(str) { str=str.replace(/\''/g,''\\\''''); str=str.replace(/\"/g,''\\"''); str=str.replace(/\\/g,''\\\\''); str=str.replace(/\0/g,''\\0''); return str; } function stripslashes(str) { str=str.replace(/\\'&...
2008 Feb 26
2
bash - safely pass untrusted strings?
...ot;add slashes" automagically, so that it can be safely passed to another program? Notice that the assignment contains spaces, single-quotes and double-quotes, maybe god-only-knows-what-else. It's untrusted data. Yet I need to pass it all *safely*. The appropriate function in PHP is addslashes(); but what is the bash equivalent? EG: #! /bin/sh A="This isn't a \"parameter\""; B=`/path/to/somecommand.sh $A`; exit 0; Thanks, -Ben -- Only those who reach toward a goal are likely to achieve it. -- This message has been scanned for viruses and dangerous...
2007 Sep 28
1
evalJSON problem
Hey there, I have a FCKeditor(a WYSIWYG online html editor) and i want to bring it to a page by Ajax and JSON by a php request-catcher. I have sth like this in my ajax request: new Ajax.Request(''myactions.php'', { method:''get'', parameters: {action:''bringeditor'', id:<?php echo $uid; ?>}, onSuccess: function(transport){
2006 May 24
0
ActiveRecord::Base.sanitize_sql and SQL injection vulnerability.
...;", or at least modify them to use the SQL-standard doubling ('''') to escape quotes.'' In particular, the vulenrability relates to applications that ''use ad-hoc methods to "escape" strings going into the database, such as regexes, or PHP3''s addslashes() and magic_quotes. Since these bypass database-specific code for safe handling of strings, many such applications will need to be re-written to become secure.'' Since this is not my field, I''m asking here: how does the above relate to Rails'' built-in SQL sanitizing fea...
2006 Jan 24
14
engines
This page: http://www.rails-engines.org/download makes it sound like SVN is optional for using engines, but when I try to run the second command ("ruby script/plugin install engines"), I get the NoMethodError on nil as described in the second issue reported here: http://www.rails-engines.org/wiki/pages/Engines+plugin%3A+Known+Issues So, which is it? Do I have to have SVN installed
2016 May 03
9
[Bug 95251] New: vdpau decoder capabilities: not supported
https://bugs.freedesktop.org/show_bug.cgi?id=95251 Bug ID: 95251 Summary: vdpau decoder capabilities: not supported Product: Mesa Version: 11.2 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau at