diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:53 +0000 |
commit | a9c818418b81b93680170e1a84d4e221e578ad2f (patch) | |
tree | 5b883aa428f1edb12f5d40f9768438ee16a7ed6b /debian/patches/003installer.patch | |
parent | Adding upstream version 6.4.3+dfsg1. (diff) | |
download | wordpress-a9c818418b81b93680170e1a84d4e221e578ad2f.tar.xz wordpress-a9c818418b81b93680170e1a84d4e221e578ad2f.zip |
Adding debian version 6.4.3+dfsg1-1.debian/6.4.3+dfsg1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/003installer.patch')
-rw-r--r-- | debian/patches/003installer.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/003installer.patch b/debian/patches/003installer.patch new file mode 100644 index 0000000..1ad3a01 --- /dev/null +++ b/debian/patches/003installer.patch @@ -0,0 +1,16 @@ +Description: Patching install.php to permit a valid upload path +Author: <andrea.de.iacovo@gmail.com> +Reviewed-by: Craig Small <csmall@debian.org> +Last-Update: 2023-08-10 +--- a/wp-admin/install.php ++++ b/wp-admin/install.php +@@ -423,6 +423,9 @@ + if ( false === $error ) { + $wpdb->show_errors(); + $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language ); ++ // Setup upload directories for Debian #430781 ++ $wpdb->query("UPDATE $wpdb->options set option_value = '$upload_path' where option_name = 'upload_path'"); ++ $wpdb->query("UPDATE $wpdb->options set option_value = '$upload_url_path' where option_name = 'upload_url_path'"); + ?> + + <h1><?php _e( 'Success!' ); ?></h1> |