summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-11-22 10:45:29 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-11-22 10:45:29 +0000
commit2b832c5fd6b8bec537ef66783e5499c44fe00851 (patch)
tree44a87c7e706feb07408ed6f0c23936649b190bdc
parent0d0054af629403ce3c5257d49180b7401de43f4e (diff)
remove hardcoded script name in post form
-rwxr-xr-xindex.cgi1
-rw-r--r--themes/html5/index.tmpl7
2 files changed, 3 insertions, 5 deletions
diff --git a/index.cgi b/index.cgi
index 6d7adef..d23a588 100755
--- a/index.cgi
+++ b/index.cgi
@@ -86,6 +86,7 @@ sub output_article {
my $tagcloud = get_tag_cloud();
my @status = ();
+ $template->param( script_name => $cgi->script_name() );
$template->param( archives => $archives );
$template->param( tagcloud => $tagcloud );
$template->param( theme => $blog_theme );
diff --git a/themes/html5/index.tmpl b/themes/html5/index.tmpl
index 23ba13e..2ef7902 100644
--- a/themes/html5/index.tmpl
+++ b/themes/html5/index.tmpl
@@ -107,10 +107,7 @@
<section id="feeds">
<h3>Feeds</h3>
<ul>
- <li><a href="/rss.xml">
- <img src="/themes/<TMPL_VAR name="theme">/feed-icon-12x12.png" alt="RSS">RSS 1.0</a></li>
- <li><a href="/rss2.xml">
- <img src="/themes/<TMPL_VAR name="theme">/feed-icon-12x12.png" alt="RSS">RSS 2.0</a></li>
+ <li><a href="/rss.xml">RSS Feed</a></li>
</ul>
</section>
@@ -195,7 +192,7 @@
<h5>Add a comment</h5>
<p>max length <TMPL_VAR name="comment_max_length"> chars</p>
</header>
- <form action="/index.cgi" method="post">
+ <form action="<TMPL_VAR name="script_name">" method="post">
<p><input name="name" size="40" maxlength="100" value="<TMPL_VAR name="name">"> Name</p>
<p><input name="email" size="40" maxlength="100" value="<TMPL_VAR name="email">"> eMail</p>
<p><input name="url" size="40" maxlength="100" value="<TMPL_VAR name="url">"> URL</p>