You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified show_error() to allow sending of HTTP server response codes.
Added set_status_header() to the Common functions to allow use when the Output class is unavailable.
Fixed a bug where the 400 status header sent with the 'disallowed URI characters' was not compatible with CGI environments.
Copy file name to clipboardExpand all lines: user_guide/changelog.html
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,12 @@ <h2>Version 1.7.2</h2>
85
85
<li>Modified <kbd>directory_map()</kbd> in the <ahref="helpers/directory_helper.html">Directory helper</a> to allow the inclusion of hidden files.</li>
86
86
</ul>
87
87
</li>
88
+
<li>General
89
+
<ul>
90
+
<li>Modified <ahref="general/errors.html">show_error()</a> to allow sending of HTTP server response codes.</li>
91
+
<li>Added set_status_header() to the <ahref="general/common_functions.html">Common functions<a> to allow use when the Output class is unavailable.</li>
92
+
</ul>
93
+
</li>
88
94
</ul>
89
95
90
96
<h3>Bug fixes for 1.7.2</h3>
@@ -102,6 +108,7 @@ <h3>Bug fixes for 1.7.2</h3>
102
108
<li>Fixed a case sensitive string replacement in xss_clean()</li>
103
109
<li>Fixed a bug in form_prep() causing it to not preserve entities in the user's original input when called back into a form element</li>
104
110
<li>Fixed a bug in _protect_identifiers() where the swap prefix ($swap_pre) was not being observed.</li>
111
+
<li>Fixed a bug where the 400 status header sent with the 'disallowed URI characters' was not compatible with CGI environments.</li>
Copy file name to clipboardExpand all lines: user_guide/general/common_functions.html
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,11 @@
58
58
<h1>Common Functions</h1>
59
59
60
60
<p>CodeIgniter uses a few functions for its operation that are globally defined, and are available to you at any point. These do not require loading any libraries or helpers.</p>
<p>is_writable() returns TRUE on Windows servers when you really can't write to the file as the OS reports to PHP as FALSE only if the read-only attribute is marked. This function determines if a file is actually writable by attempting to write to it first. Generally only recommended on platforms where this information may be unreliable.</p>
65
+
63
66
<code>if (is_really_writable('file.txt'))<br/>
64
67
{<br/>
65
68
echo "I could write to this if I wanted to";<br/>
echo "File is not writable";<br/>
70
73
}</code>
74
+
71
75
<h2>config_item('<var>item_key</var>')</h2>
72
76
<p>The <ahref="../libraries/config.html">Config library</a> is the preferred way of accessing configuration information, however config_item() can be used to retrieve single keys. See Config library documentation for more information.</p>
0 commit comments