locutus
Advanced tools
Comparing version 2.0.13 to 2.0.14
{ | ||
"name": "locutus", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Locutus other languages' standard libraries to JavaScript for fun and educational purposes", |
@@ -5,2 +5,5 @@ 'use strict'; | ||
// discuss at: https://locutus.io/php/escapeshellarg/ | ||
// Warning: this function emulates escapeshellarg() for php-running-on-linux | ||
// the function behaves differently when running on Windows, which is not covered by this code. | ||
// | ||
// original by: Felix Geisendoerfer (https://www.debuggable.com/felix) | ||
@@ -14,2 +17,6 @@ // improved by: Brett Zamir (https://brett-zamir.me) | ||
if (arg.indexOf("\x00") !== -1) { | ||
throw new Error('escapeshellarg(): Argument #1 ($arg) must not contain any null bytes'); | ||
} | ||
var ret = ''; | ||
@@ -16,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
2141545
19718