]> git.pld-linux.org Git - packages/ckfinder.git/commitdiff
- never touch error_reporting in a production
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 May 2010 17:52:02 +0000 (17:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ckfinder.spec -> 1.2
    error_reporting.patch -> 1.1

ckfinder.spec
error_reporting.patch [new file with mode: 0644]

index f539435b02e1c12ee63875eab4c5f3dafbaa0633..043e550877e5fc8139c7884409fb4b4d2596ecef 100644 (file)
@@ -2,12 +2,13 @@ Summary:      AJAX file manager for web browsers
 Summary(pl.UTF-8):     Edytor tekstowy dla Internetu
 Name:          ckfinder
 Version:       1.4.2
-Release:       0.18
+Release:       0.19
 License:       Custom
 Group:         Applications/WWW
 Source0:       http://download.cksource.com/CKFinder/CKFinder%20for%20PHP/%{version}/%{name}_php_%{version}.tar.gz
 # Source0-md5: 0f37b528272f915b9fcd3a12e2f53439
 URL:           http://www.ckfinder.com/
+Patch0:                error_reporting.patch
 Source1:       find-lang.sh
 Source2:       apache.conf
 Source3:       lighttpd.conf
@@ -72,6 +73,8 @@ rmdir core/connector/php/php5
 # undos the files
 find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' -o -name '*.php' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
+%patch0 -p1
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{php_data_dir},/var/lib/%{name}}
diff --git a/error_reporting.patch b/error_reporting.patch
new file mode 100644 (file)
index 0000000..d30f320
--- /dev/null
@@ -0,0 +1,15 @@
+--- ckfinder-1.4.2/./core/connector/php/connector.php~ 2010-05-26 19:50:10.000000000 +0300
++++ ckfinder-1.4.2/./core/connector/php/connector.php  2010-05-26 19:50:50.329046561 +0300
+@@ -20,12 +20,6 @@
+  */
+ /**
+- * Protect against sending warnings to the browser (#186).
+- * Comment out this line during debugging. 
+- */
+-error_reporting(0);
+-
+-/**
+  * Protect against sending content before all HTTP headers are sent (#186).
+  */
+ ob_start();
This page took 0.095287 seconds and 4 git commands to generate.