From 5345e9cc8336089a23cfaf49cf3b3675bdb49ba6 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Fri, 2 Oct 2020 11:11:40 +0200 Subject: [PATCH] warn that it's emulating php-on-linux (#424) related to issue #395 --- src/php/exec/escapeshellarg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/php/exec/escapeshellarg.js b/src/php/exec/escapeshellarg.js index e5bcc8578f..46892f6b94 100644 --- a/src/php/exec/escapeshellarg.js +++ b/src/php/exec/escapeshellarg.js @@ -1,5 +1,8 @@ module.exports = function escapeshellarg (arg) { // 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) // improved by: Brett Zamir (https://brett-zamir.me) // bugfixed by: divinity76 (https://github.com/divinity76)