mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix #38843: absolute urls not rewritten
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227695 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c16639e338
commit
2975bda7b8
1 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.output-add-rewrite-var">
|
||||
<refnamediv>
|
||||
<refname>output_add_rewrite_var</refname>
|
||||
|
@ -19,7 +19,8 @@
|
|||
The name and value will be added to URLs (as GET parameter) and forms
|
||||
(as hidden input fields) the same way as the session ID when transparent
|
||||
URL rewriting is enabled with <link
|
||||
linkend="ini.session.use-trans-sid">session.use_trans_sid</link>.
|
||||
linkend="ini.session.use-trans-sid">session.use_trans_sid</link>. Please
|
||||
note that absolute URLs (http://example.com/..) aren't rewritten.
|
||||
</para>
|
||||
<para>
|
||||
This functions behavior is controlled by the <link
|
||||
|
@ -40,8 +41,9 @@
|
|||
<?php
|
||||
output_add_rewrite_var('var', 'value');
|
||||
|
||||
// a link
|
||||
echo '<a href="file.php">link</a>';
|
||||
// some links
|
||||
echo '<a href="file.php">link</a>
|
||||
<a href="http://example.com">link2</a>';
|
||||
|
||||
// a form
|
||||
echo '<form action="script.php" method="post">
|
||||
|
@ -56,6 +58,7 @@ print_r(ob_list_handlers());
|
|||
<screen>
|
||||
<![CDATA[
|
||||
<a href="file.php?var=value">link</a>
|
||||
<a href="http://example.com">link2</a>
|
||||
|
||||
<form action="script.php" method="post">
|
||||
<input type="hidden" name="var" value="value" />
|
||||
|
|
Loading…
Reference in a new issue