mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Mod_epp patch fixed, now applies cleanly
This commit is contained in:
parent
cfe0472139
commit
dfc67eac4e
2 changed files with 16 additions and 9 deletions
|
@ -22,7 +22,7 @@ Usual Rails 4 app installation, rvm and bundler are your friends.
|
||||||
|
|
||||||
sudo apt-get install apache2
|
sudo apt-get install apache2
|
||||||
|
|
||||||
sudo apt-get install apache2-threaded-dev # needed to compile mod_epp
|
sudo apt-get install apache2-threaded-dev # needed to compile mod_epp
|
||||||
wget sourceforge.net/projects/aepps/files/mod_epp/1.10/mod_epp-1.10.tar.gz
|
wget sourceforge.net/projects/aepps/files/mod_epp/1.10/mod_epp-1.10.tar.gz
|
||||||
tar -xzvf mod_epp-1.10.tar.gz
|
tar -xzvf mod_epp-1.10.tar.gz
|
||||||
cd mod_epp-1.10
|
cd mod_epp-1.10
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
mod_epp.c | 2 +-
|
||||||
|
mod_epp.h | 8 ++++----
|
||||||
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/mod_epp.c b/mod_epp.c
|
diff --git a/mod_epp.c b/mod_epp.c
|
||||||
index 60c0004..bf2b6ab 100644
|
index 8b1ba6f..66e46d8 100644
|
||||||
--- a/mod_epp.c
|
--- a/mod_epp.c
|
||||||
+++ b/mod_epp.c
|
+++ b/mod_epp.c
|
||||||
@@ -756,7 +756,7 @@ sprintf(content_length, "%lu", strlen(EPP_CONTENT_FRAME_CGI)
|
@@ -756,7 +756,7 @@ sprintf(content_length, "%lu", strlen(EPP_CONTENT_FRAME_CGI)
|
||||||
strlen(conf->raw_frame)
|
strlen(conf->raw_frame)
|
||||||
+ er->orig_xml_size) : 0));
|
+ er->orig_xml_size) : 0));
|
||||||
|
|
||||||
-apr_table_set(r->headers_in, "Content-Type", "multipart/form-data; boundary=--BOUNDARY--");
|
-apr_table_set(r->headers_in, "Content-Type", "multipart/form-data; boundary=--BOUNDARY--");
|
||||||
+apr_table_set(r->headers_in, "Content-Type", EPP_CONTENT_TYPE_CGI);
|
+apr_table_set(r->headers_in, "Content-Type", EPP_CONTENT_TYPE_CGI);
|
||||||
|
@ -12,7 +16,7 @@ index 60c0004..bf2b6ab 100644
|
||||||
apr_table_set(r->headers_in, "Cookie", er->ur->cookie);
|
apr_table_set(r->headers_in, "Cookie", er->ur->cookie);
|
||||||
|
|
||||||
diff --git a/mod_epp.h b/mod_epp.h
|
diff --git a/mod_epp.h b/mod_epp.h
|
||||||
index d8c463e..7f6e320 100644
|
index e72d980..5e99bad 100644
|
||||||
--- a/mod_epp.h
|
--- a/mod_epp.h
|
||||||
+++ b/mod_epp.h
|
+++ b/mod_epp.h
|
||||||
@@ -96,10 +96,10 @@ module AP_MODULE_DECLARE_DATA epp_module;
|
@@ -96,10 +96,10 @@ module AP_MODULE_DECLARE_DATA epp_module;
|
||||||
|
@ -28,3 +32,6 @@ index d8c463e..7f6e320 100644
|
||||||
+#define EPP_CONTENT_RAW_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n"
|
+#define EPP_CONTENT_RAW_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n"
|
||||||
+#define EPP_CONTENT_CLTRID_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"clTRID\"\r\n\r\n"
|
+#define EPP_CONTENT_CLTRID_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"clTRID\"\r\n\r\n"
|
||||||
#define EPP_CONTENT_POSTFIX_CGI "\r\n----BOUNDARY--\r\n"
|
#define EPP_CONTENT_POSTFIX_CGI "\r\n----BOUNDARY--\r\n"
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue