projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
security/core#97 Ensure that php scripts where applicable in sql and tools that shoul...
[civicrm-core.git]
/
tools
/
bin
/
scripts
/
NormalizePhone.php
diff --git
a/tools/bin/scripts/NormalizePhone.php
b/tools/bin/scripts/NormalizePhone.php
index 795f1296292d1c9411e296c3634620b8888941e6..35a6526f09ad39308ae68efe58eab296f58cd2a6 100644
(file)
--- a/
tools/bin/scripts/NormalizePhone.php
+++ b/
tools/bin/scripts/NormalizePhone.php
@@
-16,7
+16,10
@@
* issues
*
*/
-
+if (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0)) {
+ header("HTTP/1.0 404 Not Found");
+ return;
+}
define('THROTTLE_REQUESTS', 0);
function run() {
session_start();