]> git.pld-linux.org Git - packages/apache-mod_vhost_mysql.git/commitdiff
- this patch enables searching website taken from mysql-home from public_html
authordjrzulf <djrzulf@pld-linux.org>
Thu, 28 Sep 2006 15:49:24 +0000 (15:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  directory,

Changed files:
    mod_vhost_mysql2-publichtml.patch -> 1.1

mod_vhost_mysql2-publichtml.patch [new file with mode: 0644]

diff --git a/mod_vhost_mysql2-publichtml.patch b/mod_vhost_mysql2-publichtml.patch
new file mode 100644 (file)
index 0000000..7eaaabf
--- /dev/null
@@ -0,0 +1,20 @@
+--- mod_vhost_mysql2-0.10/mod_vhost_mysql.c~   2004-06-09 18:38:51.000000000 +0200
++++ mod_vhost_mysql2-0.10/mod_vhost_mysql.c    2006-09-28 17:34:15.000000000 +0200
+@@ -11,7 +11,7 @@
+ #include "ap_config.h"
+ #include "mysql.h"
+-#define VHOST_MYSQL_VERSION "0.10"
++#define VHOST_MYSQL_VERSION "0.10-publichtml"
+ module AP_MODULE_DECLARE_DATA vhost_mysql_module;
+ MYSQL mysql, *mysql_p = NULL;
+@@ -109,7 +109,7 @@
+ static char *construct_sql(apr_pool_t *p, vh_mysql_config *conf, const char *hostname){
+     char *sql;
+-    sql = apr_psprintf(p, "SELECT %s FROM %s WHERE %s = %s",
++    sql = apr_psprintf(p, "SELECT CONCAT(%s,'public_html') FROM %s WHERE %s = %s",
+                     conf->docroot_col, conf->table_name,
+                     conf->host_col,
+                     quote_sql(p, hostname));
This page took 0.060725 seconds and 4 git commands to generate.