From: Banana Date: Thu, 16 Jun 2011 11:40:22 +0000 (+0200) Subject: content_type X-Git-Tag: 2.1-alpha-2019-0-29~113 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=54f87c7befdbd7dffc73008c6088265328acceb7;p=insipid.git content_type --- 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);