Skip to content
Snippets Groups Projects
Commit eda098c0 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #857300 by andypost: make drupal_install_mkdir() should use octal numbers.

parent 366334cb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -731,19 +731,19 @@ function drupal_install_mkdir($file, $mask, $message = TRUE) {
if ($mask & $m) {
switch ($m) {
case FILE_READABLE:
$mod += 444;
$mod |= 0444;
break;
case FILE_WRITABLE:
$mod += 222;
$mod |= 0222;
break;
case FILE_EXECUTABLE:
$mod += 111;
$mod |= 0111;
break;
}
}
}
if (@drupal_mkdir($file, intval("0$mod", 8))) {
if (@drupal_mkdir($file, $mod)) {
return TRUE;
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment