From 54f87c7befdbd7dffc73008c6088265328acceb7 Mon Sep 17 00:00:00 2001 From: Banana Date: Thu, 16 Jun 2011 13:40:22 +0200 Subject: [PATCH] content_type --- ChangeLog | 4 +++- TODO | 1 - htaccess | 30 ++++++++++++++++-------------- lib/Insipid/Snapshots.pm | 2 +- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 276c31b..ef6bcb2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,7 +7,9 @@ version 1.0 () * tag delete is available now. It moves the selected bookmarks to another one * bookmarks without a tag can be selected now - * + * Fix the text/html content type going that's snapshotted + This is not needed. Since we use the charset info + to determine utf, we need this information Tue Jul 14 21:38 EST 2009 Luke Reeve diff --git a/TODO b/TODO index b2f5bb0..bd6d5d5 100755 --- a/TODO +++ b/TODO @@ -2,7 +2,6 @@ For 1.0 ========================================================================== - Quote marks screw up adding a bookmark - Move htaccess management into the configuration page -- Fix the text/html content type going that's snapshotted Everything else diff --git a/htaccess b/htaccess index 334569c..4eccf00 100755 --- a/htaccess +++ b/htaccess @@ -1,14 +1,16 @@ -RewriteEngine On -RewriteBase /yourwebdirectory -RewriteRule ^bookmarks/(.*) insipid.cgi?tag=$1 [QSA] -RewriteRule ^bookmarks insipid.cgi [QSA] -RewriteRule ^feeds/bookmarks/(.*) insipid.cgi?op=rss&tag=$1 [QSA] -RewriteRule ^feeds/bookmarks insipid.cgi?op=rss [QSA] -RewriteRule ^snapshot/(.*) insipid.cgi?op=viewsnapshot&md5=$1 [QSA] - -RewriteRule ^feeds/json/tags/(.*) insipid.cgi?op=json_tags&tag=$1 [QSA] -RewriteRule ^feeds/json/tags insipid.cgi?op=json_tags [QSA] - -RewriteRule ^feeds/json/posts/(.*) insipid.cgi?op=json_posts&tag=$1 [QSA] -RewriteRule ^feeds/json/posts insipid.cgi?op=json_posts [QSA] - +Options +FollowSymlinks -Indexes + +RewriteEngine On +RewriteBase /yourwebdirectory +RewriteRule ^bookmarks/(.*) insipid.cgi?tag=$1 [QSA] +RewriteRule ^bookmarks insipid.cgi [QSA] +RewriteRule ^feeds/bookmarks/(.*) insipid.cgi?op=rss&tag=$1 [QSA] +RewriteRule ^feeds/bookmarks insipid.cgi?op=rss [QSA] +RewriteRule ^snapshot/(.*) insipid.cgi?op=viewsnapshot&md5=$1 [QSA] + +RewriteRule ^feeds/json/tags/(.*) insipid.cgi?op=json_tags&tag=$1 [QSA] +RewriteRule ^feeds/json/tags insipid.cgi?op=json_tags [QSA] + +RewriteRule ^feeds/json/posts/(.*) insipid.cgi?op=json_posts&tag=$1 [QSA] +RewriteRule ^feeds/json/posts insipid.cgi?op=json_posts [QSA] + diff --git a/lib/Insipid/Snapshots.pm b/lib/Insipid/Snapshots.pm index 74dd92f..e6f1536 100755 --- a/lib/Insipid/Snapshots.pm +++ b/lib/Insipid/Snapshots.pm @@ -134,7 +134,7 @@ sub fetch_url { my $sth = $dbh->prepare($sql); my $ct = $res->header('Content-Type'); if(length($ct) > 50) { $ct = substr($ct, 0, 50); } - + $sth->bind_param(1, $md5); $sth->bind_param(2, $url); $sth->bind_param(3, $ct); -- 2.39.5