From f7770e09fc6b5e49c8d8825a8fa123b8b203dfa1 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sun, 4 Jul 2010 07:43:31 +0000 Subject: [PATCH] Old smileys redirection implemented --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- IISMainHandler/HandlersFactory.cs | 3 +++ static/smileys/lol.gif | Bin 0 -> 570 bytes 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 static/smileys/lol.gif diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 64ae959..dd35c6b 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -546 \ No newline at end of file +548 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index f3a5e81..2989c6c 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -281 \ No newline at end of file +283 \ No newline at end of file diff --git a/IISMainHandler/HandlersFactory.cs b/IISMainHandler/HandlersFactory.cs index 66b85f2..3cde55e 100644 --- a/IISMainHandler/HandlersFactory.cs +++ b/IISMainHandler/HandlersFactory.cs @@ -22,6 +22,9 @@ namespace FLocal.IISHandler { if(context.httprequest.Path.EndsWith(".php")) { return new handlers.response.LegacyPHPHandler(); } + if(context.httprequest.Path.ToLower().StartsWith("/images/graemlins/")) { + throw new RedirectException("/static/smileys/" + context.requestParts[2]); + } #endregion switch(context.requestParts[0].ToLower()) { diff --git a/static/smileys/lol.gif b/static/smileys/lol.gif new file mode 100644 index 0000000000000000000000000000000000000000..b65849c0157f50460d9d87a28e64c41308919112 GIT binary patch literal 570 zcmZ?wbhEHbo|NsBqy?Z17pEz*f00R*~@jthpYe=xOV}PrXo&hr>P>bSE z7EUe(W(FOQc95~mEan9so>_A%LJl;ZjegE4?iw|%VAc|k71vj9yQ3X$Jm*}+yU&~E zuU9`KXyPiTT^aLlmhd7yVb@fMSt6)r*+R`a`15E>dg&1nE|vvt=_?n$dbMzU>Uj<6 z)9HNgZ7=E{Q`(p#J!LuDoSjiFs=Z2He!d4|*s@R3+;zGL*SV-y1zYs7lrFkemA8)L z_&iT;vB^rC?c@QW8ux#%n5Ama&Jy8UVQ!)